We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 723b4d3 commit ef9c3e6Copy full SHA for ef9c3e6
README.md
@@ -13,9 +13,15 @@ more examples see the tests.
13
14
```haskell
15
{-# LANGUAGE ExtendedDefaultRules #-}
16
-import Matplotlib
17
18
-onscreen $ contourF (\a b -> sin (degreesRadians a) + cos (degreesRadians b)) (-100) 100 (-200) 200 10
+import Graphics.Matplotlib
+
19
+degreesRadians a = a * pi / 180.0
20
21
+main :: IO ()
22
+main = do
23
+ Right _ <- onscreen $ contourF (\a b -> sin (degreesRadians a) + cos (degreesRadians b)) (-100) 100 (-200) 200 10
24
+ return ()
25
```
26
27
We need `-XExtendedDefaultRules` to avoid having to manually having to specify certain types.
0 commit comments