← All packages

directory1.3.11.0

Platform-agnostic library for filesystem operations

Open the imported Cabal file ↗

bug-reports
https://github.com/haskell/directory/issues
build-type
Configure
cabal-version
2.2
category
System
extra-doc-files
README.md changelog.md
extra-source-files
HsDirectoryConfig.h.in System/Directory/Internal/*.h configure configure.ac tests/*.hs
extra-tmp-files
autom4te.cache config.log config.status HsDirectoryConfig.h
license
BSD-3-Clause
license-file
LICENSE
maintainer
libraries@haskell.org
name
directory
synopsis
Platform-agnostic library for filesystem operations
tested-with
GHC == 8.10.7 || == 9.0.2 || == 9.2.4 || == 9.4.3
version
1.3.11.0
Show the complete metadata as JSON
{
  "schemaVersion": 1,
  "name": "directory",
  "version": "1.3.11.0",
  "cabalVersion": "2.2",
  "buildType": "Configure",
  "fields": {
    "bug-reports": [
      "https://github.com/haskell/directory/issues"
    ],
    "build-type": [
      "Configure"
    ],
    "cabal-version": [
      "2.2"
    ],
    "category": [
      "System"
    ],
    "description": [
      "This library provides a basic set of operations for manipulating files and\ndirectories in a portable way."
    ],
    "extra-doc-files": [
      "README.md\nchangelog.md"
    ],
    "extra-source-files": [
      "HsDirectoryConfig.h.in\nSystem/Directory/Internal/*.h\nconfigure\nconfigure.ac\ntests/*.hs"
    ],
    "extra-tmp-files": [
      "autom4te.cache\nconfig.log\nconfig.status\nHsDirectoryConfig.h"
    ],
    "license": [
      "BSD-3-Clause"
    ],
    "license-file": [
      "LICENSE"
    ],
    "maintainer": [
      "libraries@haskell.org"
    ],
    "name": [
      "directory"
    ],
    "synopsis": [
      "Platform-agnostic library for filesystem operations"
    ],
    "tested-with": [
      "GHC == 8.10.7 || == 9.0.2 || == 9.2.4 || == 9.4.3"
    ],
    "version": [
      "1.3.11.0"
    ]
  },
  "components": [
    {
      "kind": "library",
      "name": "main",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [
            "System.Directory",
            "System.Directory.OsPath",
            "System.Directory.Internal",
            "System.Directory.Internal.Prelude"
          ],
          "otherModules": [
            "System.Directory.Internal.C_utimensat",
            "System.Directory.Internal.Common",
            "System.Directory.Internal.Config",
            "System.Directory.Internal.Posix",
            "System.Directory.Internal.Windows"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.13.0 && <4.23",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "file-io",
              "range": ">=0.1.4 && <0.3",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "time",
              "range": ">=1.8.0 && <1.17",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {}
        },
        "branches": [
          {
            "condition": {
              "os": "windows"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "Win32",
                    "range": ">=2.14.1.0 && <2.15",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "unix",
                    "range": ">=2.8.0 && <2.9",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          },
          {
            "condition": {
              "compiler": "ghc",
              "range": ">=9.2"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "filepath",
                    "range": ">=1.5.0 && <1.6",
                    "libraries": [
                      "main"
                    ]
                  },
                  {
                    "package": "os-string",
                    "range": ">=2.0.0 && <2.1",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "filepath",
                    "range": ">=1.4.100 && <1.5",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          }
        ]
      }
    },
    {
      "kind": "test-suite",
      "name": "test",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [
            "TestUtils",
            "Util",
            "CanonicalizePath",
            "CopyFile001",
            "CopyFile002",
            "CopyFileWithMetadata",
            "CreateDirectory001",
            "CreateDirectoryIfMissing001",
            "CurrentDirectory001",
            "Directory001",
            "DoesDirectoryExist001",
            "DoesPathExist",
            "FileTime",
            "FindExecutable",
            "FindFile001",
            "GetDirContents001",
            "GetDirContents002",
            "GetFileSize",
            "GetHomeDirectory001",
            "GetHomeDirectory002",
            "GetPermissions001",
            "LongPaths",
            "MakeAbsolute",
            "MinimizeNameConflicts",
            "PathIsSymbolicLink",
            "RemoveDirectoryRecursive001",
            "RemovePathForcibly",
            "RenameDirectory",
            "RenameFile001",
            "RenamePath",
            "Simplify",
            "T8482",
            "WithCurrentDirectory",
            "Xdg"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "directory",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "filepath",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "time",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": [
          {
            "condition": {
              "os": "windows"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "Win32",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "unix",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          }
        ]
      }
    }
  ],
  "setupDependencies": [],
  "flags": [],
  "sourceRepositories": [
    {
      "kind": "head",
      "fields": {
        "location": [
          "https://github.com/haskell/directory"
        ],
        "type": [
          "git"
        ]
      }
    }
  ],
  "warnings": [],
  "sourceUrl": "https://hackage.haskell.org/package/directory-1.3.11.0/directory.cabal",
  "sha256": "2346c4f0af05c4ed55e77543e94b26f1b82523efd24da986bdd48a8f8a84c5a0",
  "importedAt": "2026-10-14T12:50:40.209Z",
  "dependencies": [
    {
      "package": "base",
      "range": ">=4.13.0 && <4.23",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "file-io",
      "range": ">=0.1.4 && <0.3",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "time",
      "range": ">=1.8.0 && <1.17",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "Win32",
      "range": ">=2.14.1.0 && <2.15",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "unix",
      "range": ">=2.8.0 && <2.9",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "os": "windows"
          }
        }
      ]
    },
    {
      "package": "filepath",
      "range": ">=1.5.0 && <1.6",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "compiler": "ghc",
          "range": ">=9.2"
        }
      ]
    },
    {
      "package": "os-string",
      "range": ">=2.0.0 && <2.1",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "compiler": "ghc",
          "range": ">=9.2"
        }
      ]
    },
    {
      "package": "filepath",
      "range": ">=1.4.100 && <1.5",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "compiler": "ghc",
            "range": ">=9.2"
          }
        }
      ]
    },
    {
      "package": "base",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test",
      "conditions": []
    },
    {
      "package": "directory",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test",
      "conditions": []
    },
    {
      "package": "filepath",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test",
      "conditions": []
    },
    {
      "package": "time",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test",
      "conditions": []
    },
    {
      "package": "Win32",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "unix",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:test",
      "conditions": [
        {
          "not": {
            "os": "windows"
          }
        }
      ]
    }
  ],
  "exposedModules": [
    "System.Directory",
    "System.Directory.OsPath",
    "System.Directory.Internal",
    "System.Directory.Internal.Prelude"
  ],
  "documents": {
    "readme": {
      "status": "available",
      "sha256": "ffcb45784f5861ef417971258f0629664d74c5aff5a5b4b76c4c34e8b7d7af17",
      "error": null,
      "checkedAt": "2026-10-14T12:50:40.839Z"
    },
    "changelog": {
      "status": "available",
      "sha256": "009284f20608569a03805239b0a2fd052eafb1b83d8d958674c9cc4d1150ab4b",
      "error": null,
      "checkedAt": "2026-10-14T12:50:41.045Z"
    }
  },
  "documentation": null,
  "versions": [
    {
      "version": "1.3.11.0",
      "imported_at": "2026-10-14T12:50:40.209Z"
    }
  ]
}

Import a package

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