Module

Yoga.Tree.Extended.Convert

Package
purescript-yoga-tree-utils
Repository
shamansir/purescript-yoga-tree-utils

#LinesWithPaths Source

#RenderStep Source

type RenderStep = { current :: Forest (Path /\ String), drawn :: LinesWithPaths, level :: Int }

#IsLast Source

data IsLast

Constructors

#Depth Source

newtype Depth

Constructors

Instances

#modeToF Source

modeToF :: Mode -> (Depth -> IsLast -> Path -> String)

#toString Source

toString :: forall a. Mode -> (a -> String) -> Tree a -> String

#showTree' Source

showTree' :: forall a. Show a => Tree a -> String

#PreParseStep Source

type PreParseStep = { index :: Int, level :: Int, str :: String }

#TreeParseStep Source

type TreeParseStep a = { path :: Path, prevLevel :: Int, tree :: Tree (Maybe a) }

#fromString Source

fromString :: forall a. (String -> Maybe a) -> String -> Tree (Maybe a)

#JSONTree Source

newtype JSONTree a

Constructors

Instances

#JSONRec Source

type JSONRec a = { cs :: Array (JSONTree a), v :: a }

#writeJSON Source

writeJSON :: forall a. WriteForeign a => Tree a -> String

#readJSON Source

readJSON :: forall a. ReadForeign a => String -> E (Tree a)