packages feed

cherry-core-alpha 0.2.0.0 → 0.3.0.0

raw patch · 2 files changed

+10/−2 lines, 2 files

Files

cherry-core-alpha.cabal view
@@ -1,6 +1,6 @@ cabal-version:       >=1.10 name:                cherry-core-alpha-version:             0.2.0.0+version:             0.3.0.0 synopsis:            The core library for Cherry Haskell. description:         The core library for Cherry Haskell, including a standard fuctions, server, and json parsing. license:             BSD3
src/File.hs view
@@ -12,7 +12,7 @@  -} -module File (Path, read, write) where+module File (Path, read, write, doesExist) where  import qualified List import qualified String@@ -45,6 +45,14 @@     Directory.createDirectoryIfMissing True (String.toList dir)     IO.writeFile (String.toList filename) (String.toTextUtf8 string)     return (Ok ())+++{-| -}+doesExist :: Path -> Task x Bool+doesExist path =+  Task.Task <| do+    bool <- Directory.doesFileExist (String.toList path)+    return (Ok bool)   {-| -}