[Haskell-cafe] Collections
Stefan O'Rear
stefanor at cox.net
Tue Jun 19 20:04:20 EDT 2007
On Tue, Jun 19, 2007 at 06:42:22PM -0500, Creighton Hogg wrote:
> A lot of people have had comments on this thread, but I have a off-hand
> question: what data types are required by the 98 standard? I figured it
> was just lists & tuples because they have syntactic support, but is that
> true?
According to http://haskell.org/onlinereport we have:
() - unit
(,+) - tuples
(->) - functions
Array - arrays
Bool - booleans
BufferMode - buffering
CalendarTime - parsed human time
Char - characters
ClockTime - time_t
Complex - complexes
Day - duh
Double - dp. floating point
Either - sums
ExitCode - for system etc
Float - single precision
Handle - filehandles
HandlePosn - fpos_t
IO - actions
IOError - exceptions
IOMode - open mode
Int - fixnums
Integer - bignums
Maybe - optionality
Month - duh
Ordering - trichotomy
Permissions - filemodes
Ratio - rationals
SeekMode - whence
StdGen - standard rng seed
TimeDiff - parsed human timediff
TimeLocale - for formatting times
[] - lists
Of these, Array, Maybe, (,), (), (->), and [] can be considered general
containers.
PS: why is there no index for the libraries - I had to compile that list
manually :(
Stefan
More information about the Haskell-Cafe
mailing list