Copyright | (c) Jun Narumi 2018 |
---|---|
License | BSD3 |
Maintainer | narumij@gmail.com |
Stability | experimental |
Portability | ? |
Safe Haskell | None |
Language | Haskell2010 |
- type Value = Val String
- equivalentPositions :: Num a => ReadNum a -> CharParser () [[a]]
- transformPpABC :: Num a => ReadNum a -> CharParser () [[a]]
- transformQqXYZ :: Num a => ReadNum a -> CharParser () [[a]]
- ratio :: Integral a => Value -> Either String (Ratio a)
- integral :: Integral a => Value -> Either String a
- floating :: Floating a => Value -> Either String a
Documentation
:: Num a | |
=> ReadNum a | use converter below |
-> CharParser () [[a]] |
General equivalent positions parser
transformPpABC :: Num a => ReadNum a -> CharParser () [[a]] Source #
Same as equivalentPositions but uses abc instead of xyz
transformQqXYZ :: Num a => ReadNum a -> CharParser () [[a]] Source #
Alias of equivalentPositions
ratio :: Integral a => Value -> Either String (Ratio a) Source #
Converter of 3 kind of number (int,float,ratio) string to rational
Use it for equivalentPositions or something parseer