← All packages

time-compat1.9.9

Compatibility package for time

Open the imported Cabal file ↗

author
Ashley Yakeley
bug-reports
https://github.com/haskellari/time-compat/issues
build-type
Simple
cabal-version
1.12
category
Time, Compatibility
extra-source-files
CHANGELOG.md
homepage
https://github.com/haskellari/time-compat
license
BSD3
license-file
LICENSE
maintainer
Oleg Grenrus <oleg.grenrus@iki.fi>
name
time-compat
synopsis
Compatibility package for time
tested-with
GHC ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.7 || ==9.8.4 || ==9.10.2 || ==9.12.2 || ==9.14.1
version
1.9.9
x-revision
1
Show the complete metadata as JSON
{
  "schemaVersion": 1,
  "name": "time-compat",
  "version": "1.9.9",
  "cabalVersion": "1.12",
  "buildType": "Simple",
  "fields": {
    "author": [
      "Ashley Yakeley"
    ],
    "bug-reports": [
      "https://github.com/haskellari/time-compat/issues"
    ],
    "build-type": [
      "Simple"
    ],
    "cabal-version": [
      "1.12"
    ],
    "category": [
      "Time, Compatibility"
    ],
    "description": [
      "This packages tries to compat as much of @time@ features as possible.\n.\n/TODO:/\n.\n* Difference type @ParseTime@ and @FormatTime@ instances are missing.\n.\n* Formatting varies depending on underlying @time@ version\n.\n* @dayFractionToTimeOfDay@ on extreme values"
    ],
    "extra-source-files": [
      "CHANGELOG.md"
    ],
    "homepage": [
      "https://github.com/haskellari/time-compat"
    ],
    "license": [
      "BSD3"
    ],
    "license-file": [
      "LICENSE"
    ],
    "maintainer": [
      "Oleg Grenrus <oleg.grenrus@iki.fi>"
    ],
    "name": [
      "time-compat"
    ],
    "synopsis": [
      "Compatibility package for time"
    ],
    "tested-with": [
      "GHC ==8.6.5\n|| ==8.8.4\n|| ==8.10.7\n|| ==9.0.2\n|| ==9.2.8\n|| ==9.4.8\n|| ==9.6.7\n|| ==9.8.4\n|| ==9.10.2\n|| ==9.12.2\n|| ==9.14.1"
    ],
    "version": [
      "1.9.9"
    ],
    "x-revision": [
      "1"
    ]
  },
  "components": [
    {
      "kind": "library",
      "name": "main",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [
            "Data.Time.Calendar.Compat",
            "Data.Time.Calendar.Easter.Compat",
            "Data.Time.Calendar.Julian.Compat",
            "Data.Time.Calendar.Month.Compat",
            "Data.Time.Calendar.MonthDay.Compat",
            "Data.Time.Calendar.OrdinalDate.Compat",
            "Data.Time.Calendar.Quarter.Compat",
            "Data.Time.Calendar.WeekDate.Compat",
            "Data.Time.Clock.Compat",
            "Data.Time.Clock.POSIX.Compat",
            "Data.Time.Clock.System.Compat",
            "Data.Time.Clock.TAI.Compat",
            "Data.Time.Compat",
            "Data.Time.Format.Compat",
            "Data.Time.Format.ISO8601.Compat",
            "Data.Time.LocalTime.Compat"
          ],
          "otherModules": [
            "Data.Format",
            "Data.Time.Calendar.DayPeriod",
            "Data.Time.Calendar.Private",
            "Data.Time.Calendar.Types",
            "Data.Time.Orphans"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.12 && <4.23",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "base-orphans",
              "range": ">=0.9.2 && <0.10",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "deepseq",
              "range": ">=1.4.4.0 && <1.6",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "hashable",
              "range": ">=1.4.4.0 && <1.6",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "template-haskell",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "time",
              "range": ">=1.8.0.2 && <1.9 || >=1.9.2 && <1.9.4 || >=1.10 && <1.10.1 || >=1.11 && <1.11.2 || >=1.12 && <1.13 || >=1.14 && <1.16",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {}
        },
        "branches": []
      }
    },
    {
      "kind": "test-suite",
      "name": "instances",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [],
          "dependencies": [
            {
              "package": "base",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "deepseq",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "hashable",
              "range": ">=1.4.0.0 && <1.6",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "HUnit",
              "range": ">=1.3.1 && <1.3.2 || >=1.6.0.0 && <1.7",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "template-haskell",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "time-compat",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": []
      }
    },
    {
      "kind": "test-suite",
      "name": "test-main",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [
            "Test.Arbitrary",
            "Test.Calendar.AddDays",
            "Test.Calendar.AddDaysRef",
            "Test.Calendar.CalendarProps",
            "Test.Calendar.Calendars",
            "Test.Calendar.CalendarsRef",
            "Test.Calendar.ClipDates",
            "Test.Calendar.ClipDatesRef",
            "Test.Calendar.ConvertBack",
            "Test.Calendar.DayPeriod",
            "Test.Calendar.Duration",
            "Test.Calendar.Easter",
            "Test.Calendar.EasterRef",
            "Test.Calendar.LongWeekYears",
            "Test.Calendar.LongWeekYearsRef",
            "Test.Calendar.MonthDay",
            "Test.Calendar.MonthDayRef",
            "Test.Calendar.MonthOfYear",
            "Test.Calendar.Valid",
            "Test.Calendar.Week",
            "Test.Calendar.Year",
            "Test.Clock.Conversion",
            "Test.Clock.Pattern",
            "Test.Clock.Resolution",
            "Test.Clock.TAI",
            "Test.Format.Compile",
            "Test.Format.Format",
            "Test.Format.ISO8601",
            "Test.Format.ParseTime",
            "Test.LocalTime.CalendarDiffTime",
            "Test.LocalTime.Time",
            "Test.LocalTime.TimeOfDay",
            "Test.LocalTime.TimeRef",
            "Test.TestUtil",
            "Test.Types"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "deepseq",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "QuickCheck",
              "range": ">=2.15.0.1 && <2.17",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "random",
              "range": ">=1.2.1.3 && <1.4",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty",
              "range": ">=1.5 && <1.6",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty-hunit",
              "range": ">=0.10 && <0.11",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty-quickcheck",
              "range": ">=0.11 && <0.12",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "time-compat",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": [
          {
            "condition": {
              "not": {
                "compiler": "ghc",
                "range": ">=7.4"
              }
            },
            "then": {
              "data": {
                "buildable": false,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "not": {
                "compiler": "ghc",
                "range": ">=8.0"
              }
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "fail",
                    "range": ">=4.9.0.0 && <4.10",
                    "libraries": [
                      "main"
                    ]
                  },
                  {
                    "package": "semigroups",
                    "range": ">=0.18.5 && <0.21",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          }
        ]
      }
    },
    {
      "kind": "test-suite",
      "name": "test-template",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [],
          "dependencies": [
            {
              "package": "base",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty-hunit",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "template-haskell",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "time-compat",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": []
      }
    }
  ],
  "setupDependencies": [],
  "flags": [],
  "sourceRepositories": [
    {
      "kind": "head",
      "fields": {
        "location": [
          "https://github.com/haskellari/time-compat.git"
        ],
        "type": [
          "git"
        ]
      }
    }
  ],
  "warnings": [],
  "sourceUrl": "https://hackage.haskell.org/package/time-compat-1.9.9/time-compat.cabal",
  "sha256": "0c291e0c3c87ee08b2517107b62901b102a040dc86203b53bdf07a96ff5632e0",
  "importedAt": "2026-10-14T12:49:41.012Z",
  "dependencies": [
    {
      "package": "base",
      "range": ">=4.12 && <4.23",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "base-orphans",
      "range": ">=0.9.2 && <0.10",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "deepseq",
      "range": ">=1.4.4.0 && <1.6",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "hashable",
      "range": ">=1.4.4.0 && <1.6",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "template-haskell",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "time",
      "range": ">=1.8.0.2 && <1.9 || >=1.9.2 && <1.9.4 || >=1.10 && <1.10.1 || >=1.11 && <1.11.2 || >=1.12 && <1.13 || >=1.14 && <1.16",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "base",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:instances",
      "conditions": []
    },
    {
      "package": "deepseq",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:instances",
      "conditions": []
    },
    {
      "package": "hashable",
      "range": ">=1.4.0.0 && <1.6",
      "libraries": [
        "main"
      ],
      "component": "test-suite:instances",
      "conditions": []
    },
    {
      "package": "HUnit",
      "range": ">=1.3.1 && <1.3.2 || >=1.6.0.0 && <1.7",
      "libraries": [
        "main"
      ],
      "component": "test-suite:instances",
      "conditions": []
    },
    {
      "package": "template-haskell",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:instances",
      "conditions": []
    },
    {
      "package": "time-compat",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:instances",
      "conditions": []
    },
    {
      "package": "base",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-main",
      "conditions": []
    },
    {
      "package": "deepseq",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-main",
      "conditions": []
    },
    {
      "package": "QuickCheck",
      "range": ">=2.15.0.1 && <2.17",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-main",
      "conditions": []
    },
    {
      "package": "random",
      "range": ">=1.2.1.3 && <1.4",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-main",
      "conditions": []
    },
    {
      "package": "tasty",
      "range": ">=1.5 && <1.6",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-main",
      "conditions": []
    },
    {
      "package": "tasty-hunit",
      "range": ">=0.10 && <0.11",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-main",
      "conditions": []
    },
    {
      "package": "tasty-quickcheck",
      "range": ">=0.11 && <0.12",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-main",
      "conditions": []
    },
    {
      "package": "time-compat",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-main",
      "conditions": []
    },
    {
      "package": "fail",
      "range": ">=4.9.0.0 && <4.10",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-main",
      "conditions": [
        {
          "not": {
            "compiler": "ghc",
            "range": ">=8.0"
          }
        }
      ]
    },
    {
      "package": "semigroups",
      "range": ">=0.18.5 && <0.21",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-main",
      "conditions": [
        {
          "not": {
            "compiler": "ghc",
            "range": ">=8.0"
          }
        }
      ]
    },
    {
      "package": "base",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-template",
      "conditions": []
    },
    {
      "package": "tasty",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-template",
      "conditions": []
    },
    {
      "package": "tasty-hunit",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-template",
      "conditions": []
    },
    {
      "package": "template-haskell",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-template",
      "conditions": []
    },
    {
      "package": "time-compat",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test-template",
      "conditions": []
    }
  ],
  "exposedModules": [
    "Data.Time.Calendar.Compat",
    "Data.Time.Calendar.Easter.Compat",
    "Data.Time.Calendar.Julian.Compat",
    "Data.Time.Calendar.Month.Compat",
    "Data.Time.Calendar.MonthDay.Compat",
    "Data.Time.Calendar.OrdinalDate.Compat",
    "Data.Time.Calendar.Quarter.Compat",
    "Data.Time.Calendar.WeekDate.Compat",
    "Data.Time.Clock.Compat",
    "Data.Time.Clock.POSIX.Compat",
    "Data.Time.Clock.System.Compat",
    "Data.Time.Clock.TAI.Compat",
    "Data.Time.Compat",
    "Data.Time.Format.Compat",
    "Data.Time.Format.ISO8601.Compat",
    "Data.Time.LocalTime.Compat"
  ],
  "documents": {
    "readme": {
      "status": "missing",
      "sha256": null,
      "error": null,
      "checkedAt": "2026-10-14T12:49:41.649Z"
    },
    "changelog": {
      "status": "available",
      "sha256": "30c40fd401ddfe0c8cfb799851b20629a0ba569e6e21ba85d20be55034ecc3d9",
      "error": null,
      "checkedAt": "2026-10-14T12:49:41.955Z"
    }
  },
  "documentation": null,
  "versions": [
    {
      "version": "1.9.9",
      "imported_at": "2026-10-14T12:49:41.012Z"
    }
  ]
}

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.