I am trying to walk through the functions in Data.List
of the Haskell stardard library and get an error when trying "permutations". What am I missing here? Thanks.
Prelude> map (\b-> b*b) [1,2,3]
[1,4,9]
Prelude> permutations "abc"
<interactive>:1:0: Not in scope: `permutations'
That library page you linked to is for the base libraries version 4 which come with GHC version 6.10. Are you sure you are running GHC 6.10? If you are running the previous version 6.8 then there will not be a permutations function in Data.List.