Skip to content

Commit c745f73

Browse files
danielkroenidmjio
authored andcommitted
Example which compiles (#33)
I'm not sure about this proposal. But I prefer examples that compile. Although I also see how this change distracts from the essence.
1 parent 66d3e68 commit c745f73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ nix-shell --run docs
7373

7474
## Example
7575
```haskell
76+
{-# LANGUAGE TypeApplications, ScopedTypeVariables #-}
7677
module Main where
7778

7879
import qualified ArrayFire as A
80+
import Control.Exception (catch)
7981

8082
main :: IO ()
8183
main = print newArray `catch` (\(e :: A.AFException) -> print e)

0 commit comments

Comments
 (0)