Created
April 11, 2020 10:27
-
-
Save jeetu7/7c12cddce17325e3ca109cdf2630331e to your computer and use it in GitHub Desktop.
write file idris2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main | |
import System.File | |
main : IO () | |
main = do myFile <- openFile "out_string.txt" WriteTruncate | |
case myFile of | |
Right c => fPutStr myFile "Alpha Beta" | |
Left err => printLn err | |
closeFile myFile | |
MarcelineVQ
commented
Apr 11, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment