Skip to content

Commit

Permalink
Update haddock example for the new format API
Browse files Browse the repository at this point in the history
This should have been updated in ba39d33, but better late than never.
  • Loading branch information
iustin committed Nov 22, 2015
1 parent 2ad949a commit 4ebb6be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Data/Prefix/Units.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ float\/doubles this is 'fromRational', for integral types this is
A few examples are given below:
>>> showValue (Left FormatBinary) 2048
>>> showValue FormatBinary 2048
"2.0Ki"
>>> showValue (Left FormatSiAll) 0.0001
>>> showValue FormatSiAll 0.0001
"100.0u"
>>> showValue (Right Mebi) 1048576
>>> showValue (FormatFixed Mebi) 1048576
"1Mi"
>>> parseValue ParseExact "2.5Ki"::Either String Double
Right 2560.0
Expand Down

0 comments on commit 4ebb6be

Please sign in to comment.