smh-0.2.1: String manipulation tool written in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Common

Documentation

data Range Source #

Constructors

RangeSingle !Int 
RangeRange !(Maybe Int) !(Maybe Int) 

type Action = Text -> Focuser -> IO () Source #

data Focus Source #

Constructors

FText !Text 
FList ![Focus] 

Instances

Instances details
Data Focus Source # 
Instance details

Defined in Common

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Focus -> c Focus #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Focus #

toConstr :: Focus -> Constr #

dataTypeOf :: Focus -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Focus) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Focus) #

gmapT :: (forall b. Data b => b -> b) -> Focus -> Focus #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Focus -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Focus -> r #

gmapQ :: (forall d. Data d => d -> u) -> Focus -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Focus -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Focus -> m Focus #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Focus -> m Focus #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Focus -> m Focus #

Show Focus Source # 
Instance details

Defined in Common

Methods

showsPrec :: Int -> Focus -> ShowS #

show :: Focus -> String #

showList :: [Focus] -> ShowS #

Eq Focus Source # 
Instance details

Defined in Common

Methods

(==) :: Focus -> Focus -> Bool #

(/=) :: Focus -> Focus -> Bool #

newtype Focuser Source #

Constructors

FTrav (Traversal' Focus Focus) 

fromIndexes :: Int -> Text -> [(Int, Int)] -> ([Text], [Text]) Source #

mapText :: (Char -> a) -> Text -> [a] Source #

unsort :: [Int] -> Int -> [Int] Source #