This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveFunctor #-} | |
module Browser.SeqTree where | |
import qualified Data.Sequence as S | |
data SeqTree a | |
= SeqTree | |
{ stLabel :: a | |
, stForrest :: SeqForrest a | |
} deriving (Read, Show, Functor) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Cell a where | |
-- | Drop a number of characters from the left side. Treats negative numbers | |
-- as zero. | |
dropLeft :: Int -> a -> a | |
-- | Drop a number of characters from the right side. Treats negative | |
-- numbers as zero. | |
dropRight :: Int -> a -> a | |
-- | Drop characters from both sides. Treats negative numbers as zero. |