git.iko.soy/rowtype-yoga/purescript-yoga-tree
on master help sign in
Changed to a Cofree based Tree type.
commitdc80eea3167782e8f9b20d9b48e182ae96c3a7da authorDaniel Fortes <daniel.mbfm@gmail.com> dateFri 8 Sep 2017, 22:52 (9 years ago) parent4258c53
1 file changed−5
src/Data/Tree/Zipper.purs−5
src/Data/Tree/Zipper.purs−5
@@ -8,11 +8,6 @@ import Data.List (List(..), drop, reverse, take, (!!), (:))
88import Data.Maybe (Maybe(..))
99import Data.Tree (Forest, Tree, mkTree, modifyNodeValue, setNodeValue)
1010
11−-- import Data.Generic (class Generic, gEq, gShow)
12−-- import Data.List (List(..), drop, reverse, take, (!!), (:))
13−-- import Data.Maybe (Maybe(..))
14−-- import Data.Tree (Forest, Tree(..), mkTree, modifyNodeValue, nodeChildren, nodeValue, setNodeValue)
15−
1611-- | The `Loc` type describes the location of a `Node` inside a `Tree`. For this
1712-- | we store the current `Node`, the sibling nodes that appear before the current
1813-- | node, the sibling nodes that appear after the current node, and a `List` of