tn-4.1.0.0: A simple daily journal program

Safe HaskellNone
LanguageHaskell2010

Tn.Paths

Synopsis

Documentation

dataPath :: IO FilePath Source

The directory in which we're storing our data.

On *nix, this is something like

~/.local/share/tn

This can be overridden with certain environment variables. See the module documentation in System.Directory for more details.

journalPath :: IO FilePath Source

The path to the journal

This will be dataPath plus "/journal.yaml"

createNeededFiles :: IO () Source

Create the needed paths, and put a skeleton in journalPath if need be.