reset password
Author Message
jingchao
Posts: 25
Posted 22:43 Sep 21, 2017 |

We need to submit an .hs file for lab1,

does anyone know how to write, or create a runable .hs file?

ozinderbitzin
Posts: 1
Posted 22:51 Sep 21, 2017 |

It's just a text file with a series of normal Haskell command line commands. Use any text editor you want, write your code, press "save as" (on Windows at least), and name the file whatever.hs. Then you can load/run the file from Haskell command line or, on Windows, pressing "Load" in the GUI and choosing that file.