Skip to content

GHCi does not follow the XDG Base Directory Specification

Hello,

GHCi does not follow the XDG Base Directory Specification by default on GNU/Linux based operating systems.

It creates for instance the file $HOME/.ghc/ghci_history which belongs in $XDG_CACHE_HOME/ghc/ , or $HOME/.cache/ghc/ if $XDG_CACHE_HOME is not set.

$ ghci --version The Glorious Glasgow Haskell Compilation System, version 8.0.2

Trac metadata
Trac field Value
Version 8.0.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information