Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilem Liepelt committed Mar 10, 2019
1 parent fc13e47 commit 7d10e2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/FilesBoxed.gr
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import File

main : String <IO>
main =
let [mh] = [openFile "LICENSE" ReadMode] in
let [mh] = [openHandle ReadMode "LICENSE"] in
let h <- mh;
h' <- mh;
() <- hClose h';
(h, c) <- hGetChar h;
(h, c') <- hGetChar h;
() <- hClose h
() <- closeHandle h';
(h, c) <- readChar h;
(h, c') <- readChar h;
() <- closeHandle h
in pure ((showChar c) `stringAppend` (showChar c'))

0 comments on commit 7d10e2e

Please sign in to comment.