Skip to content

Commit

Permalink
doc fix: Integers are no longer opaque (#2546)
Browse files Browse the repository at this point in the history
  • Loading branch information
kukimik authored Nov 20, 2023
1 parent 5d4391c commit 53585c9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dhall/src/Dhall/Tutorial.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1882,9 +1882,13 @@ import Dhall
-- >
-- > (input):1:1
--
-- In fact, there are no built-in functions for @Integer@s (or @Double@s) other
-- than @Integer/show@ and @Double/show@. As far as the language is concerned
-- they are opaque values that can only be shuffled around but not used in any
-- There are no built-in functions for @Integer@ arithmetic; however, conversion
-- to and from @Natural@s is possible usinng @Integer/clamp@, @Integer/negate@
-- and @Natural/toInteger@.
--
-- For @Double@s the situation is even more extreme: there are no built-in
-- functions other than @Double/show@. As far as the language is concerned they
-- are opaque values that can only be shuffled around but not used in any
-- meaningful way until they have been loaded into Haskell.
--
-- Second, the equality @(==)@ and inequality @(!=)@ operators only work on
Expand Down

0 comments on commit 53585c9

Please sign in to comment.