Copyright | (c) Klaus Luettich and Uni Bremen 2005 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Christian.Maeder@dfki.de |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Ordered maps (these keep insertion order)
ordered maps keep the ordering if converted from a list and of all insert operations which are implemented; toList uses the insertion/conversion order for the creation of the new list
Documentation
Instances
Ord a => Eq (ElemWOrd a) Source # | |
Data a => Data (ElemWOrd a) Source # | |
Defined in Common.OrderedMap gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ElemWOrd a -> c (ElemWOrd a) gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (ElemWOrd a) toConstr :: ElemWOrd a -> Constr dataTypeOf :: ElemWOrd a -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (ElemWOrd a)) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (ElemWOrd a)) gmapT :: (forall b. Data b => b -> b) -> ElemWOrd a -> ElemWOrd a gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ElemWOrd a -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ElemWOrd a -> r gmapQ :: (forall d. Data d => d -> u) -> ElemWOrd a -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> ElemWOrd a -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> ElemWOrd a -> m (ElemWOrd a) gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ElemWOrd a -> m (ElemWOrd a) gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ElemWOrd a -> m (ElemWOrd a) | |
Ord a => Ord (ElemWOrd a) Source # | |
Defined in Common.OrderedMap | |
Show a => Show (ElemWOrd a) Source # | |
Generic (ElemWOrd a) | |
FromJSON a => FromJSON (ElemWOrd a) | |
Defined in ATC.OrderedMap parseJSON :: Value -> Parser (ElemWOrd a) parseJSONList :: Value -> Parser [ElemWOrd a] | |
ToJSON a => ToJSON (ElemWOrd a) | |
Defined in ATC.OrderedMap toEncoding :: ElemWOrd a -> Encoding toJSONList :: [ElemWOrd a] -> Value toEncodingList :: [ElemWOrd a] -> Encoding | |
ShATermConvertible a => ShATermConvertible (ElemWOrd a) | |
Defined in ATC.OrderedMap toShATermAux :: ATermTable -> ElemWOrd a -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [ElemWOrd a] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, ElemWOrd a) fromShATermList' :: Int -> ATermTable -> (ATermTable, [ElemWOrd a]) | |
Pretty a => Pretty (ElemWOrd a) Source # | |
ShATermLG a => ShATermLG (ElemWOrd a) Source # | |
Defined in ATC.Grothendieck toShATermLG :: ATermTable -> ElemWOrd a -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, ElemWOrd a) Source # | |
type Rep (ElemWOrd a) | |
Defined in ATC.OrderedMap type Rep (ElemWOrd a) = D1 ('MetaData "ElemWOrd" "Common.OrderedMap" "main" 'False) (C1 ('MetaCons "EWOrd" 'PrefixI 'True) (S1 ('MetaSel ('Just "order") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "ele") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a))) |
mapWithKey :: (k -> a -> b) -> OMap k a -> OMap k b Source #
filterWithKey :: Ord k => (k -> a -> Bool) -> OMap k a -> OMap k a Source #