Module

Webb.Writer.Internal

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

#St Source

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

#Position Source

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

#StringWriterT Source

#SWriterT Source

type SWriterT :: (Type -> Type) -> Type -> Typetype SWriterT = StringWriterT

#default Source

#execSWriterT Source

execSWriterT :: forall m a. Monad m => St -> SWriterT m a -> m St

#evalSWriterT Source

evalSWriterT :: forall m a. Monad m => St -> SWriterT m a -> m a

#runSWriterT Source

runSWriterT :: forall m a. Monad m => St -> SWriterT m a -> m (Tuple a St)

#getPosition Source

getPosition :: forall m. Monad m => SWriterT m Position

#getOutput Source

getOutput :: forall m. Monad m => SWriterT m String

#clearOutput Source

clearOutput :: forall m. Monad m => SWriterT m Unit

#lastCodePoint Source

#token Source

token :: forall m. Monad m => String -> SWriterT m Unit

#tokens Source

tokens :: forall m. Monad m => Array String -> SWriterT m Unit

#word Source

word :: forall m. Monad m => String -> SWriterT m Unit

#words Source

words :: forall m. Monad m => Array String -> SWriterT m Unit

#withIndent Source

withIndent :: forall m. Monad m => Int -> SWriterT m Unit -> SWriterT m Unit

#indent Source

indent :: forall m. Monad m => Int -> SWriterT m Unit -> SWriterT m Unit

#write Source

write :: forall m. Monad m => String -> SWriterT m Unit

#newline Source

newline :: forall m. Monad m => SWriterT m Unit