Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Dynamic
module Data.Dynamic
Dynamic with equality
Dynamic type with Eq and Ord instance
Can be used as Map keys for instance
toDynEq :: (Typeable a, Eq a, Ord a) => a -> DynEq Source #
Create a DynEq value
>>>
toDynEq (10 :: Int) == toDynEq (12 :: Int)
False>>>
toDynEq (10 :: Int) <= toDynEq (12 :: Int)
True>>>
toDynEq (10 :: Int) /= toDynEq "Test"
True