haskell first impressions
DESCRIPTION
Haskell First Impressions on UbuntuTRANSCRIPT
zareac@zareac:~$ cd Downloads/ zareac@zareac:~/Downloads$ cd hugs98-plus-Sep2006/ zareac@zareac:~/Downloads/hugs98-plus-Sep2006$ bash install-sh install-sh: no input file specified. zareac@zareac:~/Downloads/hugs98-plus-Sep2006$ hugs __ __ __ __ ____ ___ _________________________________________ || || || || || || ||__ Hugs 98: Based on the Haskell 98 standard ||___|| ||__|| ||__|| __|| Copyright (c) 1994-2005 ||---|| ___|| World Wide Web: http://haskell.org/hugs || || Bugs: http://hackage.haskell.org/trac/hugs || || Version: September 2006 _________________________________________
Haskell 98 mode: Restart with command line option -98 to enable extensions
Type :? for help Hugs> 3+2 5 Hugs> 8 'div' 3 ERROR - Improperly terminated character constant Hugs> 8'div'2 ERROR - Improperly terminated character constant Hugs> 8 'div' 2 ERROR - Improperly terminated character constant Hugs> 7 'div' 3 ERROR - Improperly terminated character constant Hugs> 7 div 3 ERROR - Cannot infer instance *** Instance : Num ((a -> a -> a) -> b -> c) *** Expression : fromInt 7 div 3
Hugs> 7 ‘div ‘ 2 ERROR - Unrecognised character `\8216' in column 3 Hugs> 7 ‘div‘ 2 ERROR - Unrecognised character `\8216' in column 3 Hugs> 7‘div‘2 ERROR - Unrecognised character `\8216' in column 2 Hugs> 7 'div' 2 ERROR - Improperly terminated character constant Hugs> 7 'div' 2; ERROR - Improperly terminated character constant Hugs> 2 * 3 6 Hugs> head [1,2,3] 1 Hugs> tail[3,45,5] [45,5] Hugs> tail [3,45,5] [45,5] Hugs> 1 "div" 3
ERROR - Cannot infer instance *** Instance : Num ([Char] -> a -> b) *** Expression : fromInt 1 "div" 3
Hugs> 7 div 5 ERROR - Cannot infer instance *** Instance : Num ((a -> a -> a) -> b -> c) *** Expression : fromInt 7 div 5
Hugs> 7 `div` 3 2 Hugs>