summaryrefslogtreecommitdiff
path: root/p/haskell-lens/debian/patches/fudge-doctest-nonascii.diff
blob: f27912d9aed674b10bb3273915b93b8728a3df98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/src/Data/Complex/Lens.hs
+++ b/src/Data/Complex/Lens.hs
@@ -46,7 +46,7 @@ import Control.Applicative
 
 -- $setup
 -- >>> import Debug.SimpleReflect
--- >>> let { a ≈ b = abs (a - b) < 1e-6; infix 4 ≈ }
+-- >>> let { a ~~ b = abs (a - b) < 1e-6; infix 4 ~~ }
 
 -- | Access the 'realPart' of a 'Complex' number.
 --
@@ -120,7 +120,7 @@ _magnitude f c = setMag <$> f r
 
 -- | Access the 'phase' of a 'Complex' number.
 --
--- >>> (mkPolar 10 (2-pi) & _phase +~ pi & view _phase) ≈ 2
+-- >>> (mkPolar 10 (2-pi) & _phase +~ pi & view _phase) ~~ 2
 -- True
 --
 -- This isn't /quite/ a legal 'Lens'. Notably the
@@ -142,7 +142,7 @@ _phase f c = setPhase <$> f theta
 -- >>> (2.0 :+ 3.0) & _conjugate . _imagPart -~ 1
 -- 2.0 :+ 4.0
 --
--- >>> (mkPolar 10.0 2.0 ^. _conjugate . _phase) ≈ (-2.0)
+-- >>> (mkPolar 10.0 2.0 ^. _conjugate . _phase) ~~ (-2.0)
 -- True
 _conjugate :: RealFloat a => Iso' (Complex a) (Complex a)
 _conjugate = involuted conjugate