7 import Prelude (Unit(), ($))
9 import Control.Monad.Aff (Aff(), makeAff)
10 import Control.Monad.Eff (Eff())
11 import Control.Monad.Eff.Exception (Error())
13 import Data.Maybe (Maybe(..))
14 import Data.String.Regex (Regex())
18 foreign import data FS :: !
20 writeFileUtf8 :: forall eff. String -> String -> Aff (fs :: FS | eff) Unit
21 writeFileUtf8 filepath contents = makeAff $ runFn4 writeFileUtf8Fn filepath contents
23 foreign import writeFileUtf8Fn :: forall eff. Fn4 String
25 (Error -> Eff (fs :: FS | eff) Unit)
26 (Unit -> Eff (fs :: FS | eff) Unit)
27 (Eff (fs :: FS | eff) Unit)
29 findFileUtf8 :: forall eff. Regex -> Array String -> Aff (fs :: FS | eff) (Maybe String)
30 findFileUtf8 regexp filepaths = makeAff $ runFn6 findFileUtf8Fn Nothing Just regexp filepaths
32 foreign import findFileUtf8Fn :: forall eff. Fn6 (Maybe String)
33 (String -> Maybe String)
36 (Error -> Eff (fs :: FS | eff) Unit)
37 (Maybe String -> Eff (fs :: FS | eff) Unit)
38 (Eff (fs :: FS | eff) Unit)