Module

Data.Int.Parse

Package
purescript-parseint
Repository
athanclark/purescript-parseint

#Radix Source

newtype Radix

#toRadix Source

toRadix :: Int -> Radix

Enforces the base to be between 2 and 36

#parseInt Source

parseInt :: String -> Radix -> Maybe Int

Warning - this function follows the same semantics as native JS's parseInt() function - it will parse "as much as it can", when it can - sometimes it succeeds when the input isn't completely sanitary.