Module

Tupc

Package
purescript-tupc
Repository
rubenpieters/tupc

#fromGenericContent Source

fromGenericContent :: forall r f. Monad f => { fileContent :: f String, throw :: forall a. String -> f a | r } -> f (Map Char EnrichedPos)

Reads configuration from generic content.

#fromFileUTF8 Source

fromFileUTF8 :: forall r e f. MonadEff (exception :: EXCEPTION, fs :: FS | e) f => { throw :: forall a. String -> f a | r } -> String -> f (Map Char EnrichedPos)

Reads configuration from UTF8 encoded file.

#fromJson Source

fromJson :: forall r f. Monad f => { throw :: forall a. String -> f a | r } -> SubJsonConfigContent -> f (Map Char EnrichedPos)

Reads configuration from javascript object. subJsonConfig contains the configuration section. content contains the content section.

#toGenericContent Source

toGenericContent :: forall r f. Monad f => { write :: String -> f Unit | r } -> Map String Pos -> f Unit

Writes to generic location.

Re-exports from Tupc.Internal

#SubJsonConfigContent Source

type SubJsonConfigContent = { content :: Content, subJsonConfig :: SubRecord OptParams }

#Pos Source

newtype Pos

Constructors

Instances

#EnrichedPos Source

newtype EnrichedPos

Constructors

Instances