Module

Webb.Writer

Package
purescript-webb-writer
Repository
mitchellandwebb/webb-writer

#write Source

write :: forall m. MonadAff m => File -> WriterM m

Re-exports from Webb.Writer.File

#File Source

newtype File

#resetDir Source

resetDir :: forall m. MonadAff m => String -> m Unit

#openAndTruncate Source

openAndTruncate :: forall m. MonadAff m => File -> m Unit

#isOpen Source

isOpen :: forall m. MonadEffect m => File -> m Boolean

#getFile Source

getFile :: forall m. MonadAff m => String -> String -> m File

#close Source

close :: forall m. MonadAff m => File -> m Unit

#assertProjectRoot Source

assertProjectRoot :: forall m. MonadAff m => m Unit

Re-exports from Webb.Writer.Internal

#WriterM' Source

type WriterM' :: (Type -> Type) -> Type -> Typetype WriterM' m a = StateT St m a

#WriterM Source

type WriterM :: (Type -> Type) -> Typetype WriterM m = WriterM' m Unit

#St Source

type St = { column :: Int, indentSpaces :: Int, line :: Int, output :: Array String }

#Position Source

type Position = { column :: Int, indentSpaces :: Int, line :: Int }

#withIndent Source

withIndent :: forall m. Monad m => Int -> WriterM m -> WriterM m

#typeEquals Source

typeEquals :: forall m. Monad m => String -> WriterM m

#token Source

token :: forall m. Monad m => String -> WriterM m

#string Source

string :: forall m. Monad m => String -> WriterM m

#runWriterM Source

runWriterM :: forall m a. Monad m => St -> WriterM' m a -> m (Tuple a St)

#putType Source

putType :: forall m. Monad m => String -> Array String -> WriterM m

#putSignature Source

#putRecordUpdate Source

putRecordUpdate :: forall m. Monad m => String -> Map String String -> WriterM m

#putRecordType Source

putRecordType :: forall m. Monad m => Map String String -> WriterM m

#putRecord' Source

putRecord' :: forall m. Monad m => String -> Map String String -> WriterM m

#putRecord Source

putRecord :: forall m. Monad m => Map String String -> WriterM m

#putImport Source

putImport :: forall m. Monad m => String -> WriterM m

#putDo Source

putDo :: forall m. Monad m => WriterM m

#putAdo Source

putAdo :: forall m. Monad m => WriterM m

#newtypeEquals Source

newtypeEquals :: forall m. Monad m => String -> Array String -> WriterM m

#newline Source

newline :: forall m. Monad m => WriterM m

#multiLine Source

multiLine :: forall m. Monad m => String -> WriterM m

#moduleWhere Source

moduleWhere :: forall m. Monad m => String -> WriterM m

#getPosition Source

getPosition :: forall m. Monad m => WriterM' m Position

#getOutput Source

getOutput :: forall m. Monad m => WriterM' m String

#execWriterM Source

execWriterM :: forall m a. Monad m => St -> WriterM' m a -> m St

#evalWriterM Source

evalWriterM :: forall m a. Monad m => St -> WriterM' m a -> m a

#equals Source

equals :: forall m. Monad m => WriterM m

#default Source

#dataEquals Source

dataEquals :: forall m. Monad m => String -> Array String -> WriterM m

#clearOutput Source

clearOutput :: forall m. Monad m => WriterM m

#bodyEquals Source

bodyEquals :: forall m. Monad m => String -> Array String -> WriterM m