flocc-pffb

Stabilityexperimental
Maintainerdeveloper@flocc.net
Safe HaskellNone

Compiler.Planner.SearchCache

Description

For more information please see http://www.flocc.net/

Synopsis

Documentation

type SCacheM = StateT SCacheSt IO

readOrCreateFile :: String -> String -> IO String

readOrCreateFile filePath defaultValue. Tries to open |filePath and return the contents. If file doesn't exist |creates it writing defaultValue to it, and returns defaultValue.