Skip to content

Commit 53585c9

Browse files
authored
doc fix: Integers are no longer opaque (#2546)
1 parent 5d4391c commit 53585c9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dhall/src/Dhall/Tutorial.hs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,9 +1882,13 @@ import Dhall
18821882
-- >
18831883
-- > (input):1:1
18841884
--
1885-
-- In fact, there are no built-in functions for @Integer@s (or @Double@s) other
1886-
-- than @Integer/show@ and @Double/show@. As far as the language is concerned
1887-
-- they are opaque values that can only be shuffled around but not used in any
1885+
-- There are no built-in functions for @Integer@ arithmetic; however, conversion
1886+
-- to and from @Natural@s is possible usinng @Integer/clamp@, @Integer/negate@
1887+
-- and @Natural/toInteger@.
1888+
--
1889+
-- For @Double@s the situation is even more extreme: there are no built-in
1890+
-- functions other than @Double/show@. As far as the language is concerned they
1891+
-- are opaque values that can only be shuffled around but not used in any
18881892
-- meaningful way until they have been loaded into Haskell.
18891893
--
18901894
-- Second, the equality @(==)@ and inequality @(!=)@ operators only work on

0 commit comments

Comments
 (0)