Download Hugs 98 - Haskell
Transcript
Contents 1 Introduction 1 2 A technical summary of Hugs 98 3 3 Hugs for beginners 3.1 Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 5 7 7 4 Starting Hugs 4.1 Environment options . . . . . . 4.2 Options . . . . . . . . . . . . . - Set search path . . . . . . . . - Set editor . . . . . . . . . . . - Print statistics . . . . . . . . . - Print type after evaluation . . - Terminate on error . . . . . . - Garbage collector notification - Literate modules . . . . . . . - Display dots while loading . . - Display nothing while loading - List files loaded . . . . . . . . - Detailed kind errors . . . . . . - Use “show” to display results . - Import chasing . . . . . . . . - Set heap size . . . . . . . . . . - Set prompt . . . . . . . . . . . - Set repeat string . . . . . . . . - Set preprocessor string . . . . - Set constraint cutoff limit . . . 5 Hugs commands 5.1 Basic commands . . . . - Evaluate expression . . - View or change settings - Shell escape . . . . . . - List commands . . . . . . . . . . . . . . . . . . . . . . . . i . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 11 12 13 13 14 15 15 16 17 18 19 19 19 20 21 23 24 24 24 25 . . . . . 26 26 26 28 29 30