Skip to content

Haddock claims System.OsPath is safe-inferred, but it can't be imported safely

The Hackage page for filepath-1.4.100.4 shows:

Safe Haskell Safe-Inferred

But I can't import it safely:

$ cabal repl -b filepath --constraint="filepath == 1.4.100.4"
Resolving dependencies...
Build profile: -w ghc-9.4.5 -O1
In order, the following will be built (use -v for more details):
 - fake-package-0 (lib) (first run)
Configuring library for fake-package-0..
Warning: No exposed modules
GHCi, version 9.4.5: https://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from /run/user/1000/cabal-repl.-306545/setcwd.ghci
ghci> :set -XSafe
ghci> import System.OsPath

<no location info>: error:
    System.OsPath: Can't be safely imported!
    The module itself isn't safe.
Edited by Jaro Reinders
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information