Copyright | Kei Hibino 2012 |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe |
Language | Haskell98 |
This module contains isomorphism definitions of basic data types for Control.Isomorphism.Partial.
- succ :: Enum a => Iso a a
- singleton :: Iso a [a]
- readShow :: (Read a, Show a) => Iso String a
- negate :: Num a => Iso a a
- not :: Iso Bool Bool
- reverse :: Iso [a] [a]
- digitInt :: Iso Char Int
- chrOrd :: Iso Char Int
- oct :: (Integral a, Show a) => Iso String a
- hex :: (Integral a, Show a) => Iso String a
- signumAbs :: (Num a, Eq a) => Iso (a, a) a
- digitsFloat :: RealFloat a => Iso ([Int], Int) a
- floatTripleDigits :: Iso (String, (String, Int)) ([Int], Int)
- floatTriple :: RealFloat a => Iso (String, (String, Int)) a
Documentation
digitsFloat :: RealFloat a => Iso ([Int], Int) a Source
floatToDigits
and that's inverse.
floatTripleDigits :: Iso (String, (String, Int)) ([Int], Int) Source
Float Triple is (int part, (fraction part, exponent)), and Digits is result of floatToDigits