[GHC] #15540: GHCi does not follow the XDG Base Directory Specification

GHC ghc-devs at haskell.org
Tue Aug 21 23:33:38 UTC 2018


#15540: GHCi does not follow the XDG Base Directory Specification
-------------------------------------+-------------------------------------
        Reporter:  rszibele          |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  GHCi              |              Version:  8.0.2
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by rszibele):

 The package database would also belong in `$XDG_CACHE_HOME/ghc`, I used
 `.ghci_history` as an example.

 Supporting the XDG Base Directory Specification would allow users to
 easily back up their configuration files while at the same time not
 including cache in the backup. It also allows for deleting the cache of a
 user without having to check which files are essential and which files
 aren't, as one could simply delete all files in `$XDG_CACHE_HOME/`.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15540#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list