← All packages

file-io0.2.0

Basic file IO operations via 'OsPath'

Open the imported Cabal file ↗

author
Julian Ospald
bug-reports
https://github.com/hasufell/file-io/issues
cabal-version
2.4
category
System
copyright
Julian Ospald 2022
extra-doc-files
CHANGELOG.md
homepage
https://github.com/hasufell/file-io
license
BSD-3-Clause
license-file
LICENSE
maintainer
hasufell@posteo.de
name
file-io
synopsis
Basic file IO operations via 'OsPath'
tested-with
GHC==9.8.1, GHC==9.4.8, GHC==9.2.8, GHC==9.0.2, GHC==8.10.7, GHC==8.8.4
version
0.2.0
Show the complete metadata as JSON
{
  "schemaVersion": 1,
  "name": "file-io",
  "version": "0.2.0",
  "cabalVersion": "2.4",
  "buildType": "Simple",
  "fields": {
    "author": [
      "Julian Ospald"
    ],
    "bug-reports": [
      "https://github.com/hasufell/file-io/issues"
    ],
    "cabal-version": [
      "2.4"
    ],
    "category": [
      "System"
    ],
    "copyright": [
      "Julian Ospald 2022"
    ],
    "description": [
      "Basic file IO operations like Prelude, but for 'OsPath'."
    ],
    "extra-doc-files": [
      "CHANGELOG.md"
    ],
    "homepage": [
      "https://github.com/hasufell/file-io"
    ],
    "license": [
      "BSD-3-Clause"
    ],
    "license-file": [
      "LICENSE"
    ],
    "maintainer": [
      "hasufell@posteo.de"
    ],
    "name": [
      "file-io"
    ],
    "synopsis": [
      "Basic file IO operations via 'OsPath'"
    ],
    "tested-with": [
      "GHC==9.8.1,\nGHC==9.4.8,\nGHC==9.2.8,\nGHC==9.0.2,\nGHC==8.10.7,\nGHC==8.8.4"
    ],
    "version": [
      "0.2.0"
    ]
  },
  "components": [
    {
      "kind": "library",
      "name": "main",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [
            "System.File.OsPath",
            "System.File.OsPath.Internal",
            "System.File.PlatformPath",
            "System.File.PlatformPath.Internal"
          ],
          "otherModules": [
            "System.File.Platform"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.13.0.0 && <5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "bytestring",
              "range": ">=0.11.3.0 && <1",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "deepseq",
              "range": ">=1 && <2",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {}
        },
        "branches": [
          {
            "condition": {
              "os": "windows"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "Win32",
                    "range": ">=2.13.3.0",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "unix",
                    "range": ">=2.8.0.0 && <3",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          },
          {
            "condition": {
              "flag": "os-string"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "filepath",
                    "range": ">=1.5.0.0",
                    "libraries": [
                      "main"
                    ]
                  },
                  {
                    "package": "os-string",
                    "range": ">=2.0.0",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "filepath",
                    "range": ">=1.4.100.0 && <1.5.0.0",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          },
          {
            "condition": {
              "flag": "long-paths"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          }
        ]
      }
    },
    {
      "kind": "test-suite",
      "name": "T15",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.13.0.0 && <5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty-hunit",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "file-io",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "filepath",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "temporary",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": [
          {
            "condition": {
              "os": "windows"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "Win32",
                    "range": ">=2.13.3.0",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          }
        ]
      }
    },
    {
      "kind": "test-suite",
      "name": "T15Win",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [],
          "dependencies": [],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": [
          {
            "condition": {
              "os": "windows"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "base",
                    "range": ">=4.13.0.0 && <5",
                    "libraries": [
                      "main"
                    ]
                  },
                  {
                    "package": "tasty",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  },
                  {
                    "package": "tasty-hunit",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  },
                  {
                    "package": "file-io",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  },
                  {
                    "package": "filepath",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  },
                  {
                    "package": "temporary",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  },
                  {
                    "package": "Win32",
                    "range": ">=2.13.3.0",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "base",
                    "range": ">=4.13.0.0 && <5",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          }
        ]
      }
    },
    {
      "kind": "test-suite",
      "name": "T14",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.13.0.0 && <5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "file-io",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "filepath",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "temporary",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": []
      }
    },
    {
      "kind": "test-suite",
      "name": "T8",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.13.0.0 && <5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "bytestring",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "file-io",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "filepath",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "temporary",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": []
      }
    },
    {
      "kind": "test-suite",
      "name": "CLC237",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.13.0.0 && <5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "file-io",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "filepath",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "temporary",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": []
      }
    },
    {
      "kind": "test-suite",
      "name": "Properties",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.13.0.0 && <5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "bytestring",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "directory",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty-hunit",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "file-io",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "filepath",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "temporary",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": [
          {
            "condition": {
              "flag": "long-paths"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          }
        ]
      }
    }
  ],
  "setupDependencies": [],
  "flags": [
    {
      "name": "os-string",
      "default": false,
      "manual": false,
      "description": "Use the new os-string package"
    },
    {
      "name": "long-paths",
      "default": true,
      "manual": true,
      "description": "Enable a hack for ad-hoc long path support on Windows"
    }
  ],
  "sourceRepositories": [
    {
      "kind": "head",
      "fields": {
        "location": [
          "https://github.com/hasufell/file-io.git"
        ],
        "type": [
          "git"
        ]
      }
    }
  ],
  "warnings": [],
  "sourceUrl": "https://hackage.haskell.org/package/file-io-0.2.0/file-io.cabal",
  "sha256": "e896ca0207a70f04a1d4357bb031a703f79317ff973efc62817fa237c2964e5c",
  "importedAt": "2026-10-14T12:50:32.878Z",
  "dependencies": [
    {
      "package": "base",
      "range": ">=4.13.0.0 && <5",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "bytestring",
      "range": ">=0.11.3.0 && <1",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "deepseq",
      "range": ">=1 && <2",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "Win32",
      "range": ">=2.13.3.0",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "unix",
      "range": ">=2.8.0.0 && <3",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "os": "windows"
          }
        }
      ]
    },
    {
      "package": "filepath",
      "range": ">=1.5.0.0",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "flag": "os-string"
        }
      ]
    },
    {
      "package": "os-string",
      "range": ">=2.0.0",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "flag": "os-string"
        }
      ]
    },
    {
      "package": "filepath",
      "range": ">=1.4.100.0 && <1.5.0.0",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "flag": "os-string"
          }
        }
      ]
    },
    {
      "package": "base",
      "range": ">=4.13.0.0 && <5",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15",
      "conditions": []
    },
    {
      "package": "tasty",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15",
      "conditions": []
    },
    {
      "package": "tasty-hunit",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15",
      "conditions": []
    },
    {
      "package": "file-io",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15",
      "conditions": []
    },
    {
      "package": "filepath",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15",
      "conditions": []
    },
    {
      "package": "temporary",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15",
      "conditions": []
    },
    {
      "package": "Win32",
      "range": ">=2.13.3.0",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "base",
      "range": ">=4.13.0.0 && <5",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15Win",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "tasty",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15Win",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "tasty-hunit",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15Win",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "file-io",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15Win",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "filepath",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15Win",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "temporary",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15Win",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "Win32",
      "range": ">=2.13.3.0",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15Win",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "base",
      "range": ">=4.13.0.0 && <5",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T15Win",
      "conditions": [
        {
          "not": {
            "os": "windows"
          }
        }
      ]
    },
    {
      "package": "base",
      "range": ">=4.13.0.0 && <5",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T14",
      "conditions": []
    },
    {
      "package": "file-io",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T14",
      "conditions": []
    },
    {
      "package": "filepath",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T14",
      "conditions": []
    },
    {
      "package": "temporary",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T14",
      "conditions": []
    },
    {
      "package": "base",
      "range": ">=4.13.0.0 && <5",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T8",
      "conditions": []
    },
    {
      "package": "bytestring",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T8",
      "conditions": []
    },
    {
      "package": "file-io",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T8",
      "conditions": []
    },
    {
      "package": "filepath",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T8",
      "conditions": []
    },
    {
      "package": "temporary",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:T8",
      "conditions": []
    },
    {
      "package": "base",
      "range": ">=4.13.0.0 && <5",
      "libraries": [
        "main"
      ],
      "component": "test-suite:CLC237",
      "conditions": []
    },
    {
      "package": "file-io",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:CLC237",
      "conditions": []
    },
    {
      "package": "filepath",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:CLC237",
      "conditions": []
    },
    {
      "package": "temporary",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:CLC237",
      "conditions": []
    },
    {
      "package": "base",
      "range": ">=4.13.0.0 && <5",
      "libraries": [
        "main"
      ],
      "component": "test-suite:Properties",
      "conditions": []
    },
    {
      "package": "bytestring",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:Properties",
      "conditions": []
    },
    {
      "package": "directory",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:Properties",
      "conditions": []
    },
    {
      "package": "tasty",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:Properties",
      "conditions": []
    },
    {
      "package": "tasty-hunit",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:Properties",
      "conditions": []
    },
    {
      "package": "file-io",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:Properties",
      "conditions": []
    },
    {
      "package": "filepath",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:Properties",
      "conditions": []
    },
    {
      "package": "temporary",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:Properties",
      "conditions": []
    }
  ],
  "exposedModules": [
    "System.File.OsPath",
    "System.File.OsPath.Internal",
    "System.File.PlatformPath",
    "System.File.PlatformPath.Internal"
  ],
  "documents": {
    "readme": {
      "status": "failed",
      "sha256": null,
      "error": "Hackage could not supply the document. Import this version again to try again.",
      "checkedAt": "2026-10-14T12:50:33.571Z"
    },
    "changelog": {
      "status": "available",
      "sha256": "0296d78641ea2e99fa5fcd33d752ac5ffc5aace7735daada6bd4c3ed4303502e",
      "error": null,
      "checkedAt": "2026-10-14T12:50:33.843Z"
    }
  },
  "documentation": null,
  "versions": [
    {
      "version": "0.2.0",
      "imported_at": "2026-10-14T12:50:32.878Z"
    }
  ]
}

Import a package

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