Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Data/Int.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module Data.Int
, octal
, decimal
, hexadecimal
, base36
, fromStringAs
, toStringAs
, even
Expand Down Expand Up @@ -114,6 +115,10 @@ decimal = Radix 10
hexadecimal :: Radix
hexadecimal = Radix 16

-- | The base-36 system.
base36 :: Radix
base36 = Radix 36

-- | Create a `Radix` from a number between 2 and 36.
radix :: Int -> Maybe Radix
radix n | n >= 2 && n <= 36 = Just (Radix n)
Expand Down