Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | None |
Language | Haskell98 |
Strategies can be configured at their labeled positions. Possible actions are removereinsert, collapseexpand, and hide/reveal.
Synopsis
- data StrategyCfg
- byName :: HasId a => ConfigAction -> a -> StrategyCfg
- data ConfigAction
- configure :: StrategyCfg -> LabeledStrategy a -> LabeledStrategy a
- configureS :: StrategyCfg -> Strategy a -> Strategy a
- remove :: IsStrategy f => f a -> Strategy a
- collapse :: IsStrategy f => f a -> Strategy a
- hide :: IsStrategy f => f a -> Strategy a
- multi :: (IsId l, IsStrategy f) => l -> f a -> Strategy a
- isConfigId :: HasId a => a -> Bool
Documentation
data StrategyCfg Source #
Instances
Show StrategyCfg Source # | |
Defined in Ideas.Common.Strategy.Configuration showsPrec :: Int -> StrategyCfg -> ShowS # show :: StrategyCfg -> String # showList :: [StrategyCfg] -> ShowS # | |
Semigroup StrategyCfg Source # | |
Defined in Ideas.Common.Strategy.Configuration (<>) :: StrategyCfg -> StrategyCfg -> StrategyCfg # sconcat :: NonEmpty StrategyCfg -> StrategyCfg # stimes :: Integral b => b -> StrategyCfg -> StrategyCfg # | |
Monoid StrategyCfg Source # | |
Defined in Ideas.Common.Strategy.Configuration mempty :: StrategyCfg # mappend :: StrategyCfg -> StrategyCfg -> StrategyCfg # mconcat :: [StrategyCfg] -> StrategyCfg # |
byName :: HasId a => ConfigAction -> a -> StrategyCfg Source #
data ConfigAction Source #
Instances
Eq ConfigAction Source # | |
Defined in Ideas.Common.Strategy.Configuration (==) :: ConfigAction -> ConfigAction -> Bool # (/=) :: ConfigAction -> ConfigAction -> Bool # | |
Read ConfigAction Source # | |
Defined in Ideas.Common.Strategy.Configuration readsPrec :: Int -> ReadS ConfigAction # readList :: ReadS [ConfigAction] # | |
Show ConfigAction Source # | |
Defined in Ideas.Common.Strategy.Configuration showsPrec :: Int -> ConfigAction -> ShowS # show :: ConfigAction -> String # showList :: [ConfigAction] -> ShowS # |
configure :: StrategyCfg -> LabeledStrategy a -> LabeledStrategy a Source #
configureS :: StrategyCfg -> Strategy a -> Strategy a Source #
remove :: IsStrategy f => f a -> Strategy a Source #
collapse :: IsStrategy f => f a -> Strategy a Source #
hide :: IsStrategy f => f a -> Strategy a Source #
multi :: (IsId l, IsStrategy f) => l -> f a -> Strategy a Source #
Apply a strategy at least once, but collapse into a single step
isConfigId :: HasId a => a -> Bool Source #