Copyright | (c) 2011-2013,2015 Ian-Woo Kim |
---|---|
License | BSD3 |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell98 |
representing selection of hoodle type
- type NonEmptyList a = (a, [a])
- newtype SeqZipper a = SZ {}
- singletonSZ :: a -> SeqZipper a
- lengthSZ :: SeqZipper a -> Int
- currIndex :: SeqZipper a -> Int
- appendGoLast :: SeqZipper a -> a -> SeqZipper a
- appendDropSecond :: SeqZipper a -> a -> SeqZipper a
- chopFirst :: SeqZipper a -> Maybe (SeqZipper a)
- moveLeft :: SeqZipper a -> Maybe (SeqZipper a)
- moveRight :: SeqZipper a -> Maybe (SeqZipper a)
- moveTo :: Int -> SeqZipper a -> Maybe (SeqZipper a)
- goFirst :: SeqZipper a -> SeqZipper a
- goLast :: SeqZipper a -> SeqZipper a
- current :: SeqZipper a -> a
- prev :: SeqZipper a -> Maybe a
- next :: SeqZipper a -> Maybe a
- replace :: a -> SeqZipper a -> SeqZipper a
- deleteCurrent :: SeqZipper a -> Maybe (SeqZipper a)
- fromNonEmptyList :: NonEmptyList a -> SeqZipper a
- toSeq :: SeqZipper a -> Seq a
- type ZipperSelect = SeqZipper
- selectFirst :: ZipperSelect a -> ZipperSelect a
Documentation
type NonEmptyList a = (a, [a]) Source #
singletonSZ :: a -> SeqZipper a Source #
appendGoLast :: SeqZipper a -> a -> SeqZipper a Source #
appendDropSecond :: SeqZipper a -> a -> SeqZipper a Source #
fromNonEmptyList :: NonEmptyList a -> SeqZipper a Source #
type ZipperSelect = SeqZipper Source #
selectFirst :: ZipperSelect a -> ZipperSelect a Source #