Skip to content

Commit

Permalink
Slightly clarify deconstruct documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk committed Nov 9, 2021
1 parent 5bf51f3 commit ebc208b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Data/Real/Constructible.hs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ constructible numbers representing @a + b*sqrt r@ (with @b /= 0@ and
@r > 0@). Recursively calling 'deconstruct' on all triples will yield
a finite tree that terminates in 'Rational' leaves.
Note that two constructible numbers that compare as equal may
deconstruct in different ways.
Note that two irrational constructible numbers that compare as equal
may deconstruct in different ways.
-}
deconstruct :: Construct -> Either Rational (Construct, Construct, Construct)
deconstruct (C k a) = deconstructK k a
Expand Down

0 comments on commit ebc208b

Please sign in to comment.