s mailing list
>> > > > Beginners@haskell.org
>> > > > http://www.haskell.org/mailman/listinfo/beginners
>> > > >
>> > > >
>> > ___
>> > Beginners mailing list
>> > Begin
Roelof Wobben wrote:
> > >
> > > > What I try to achieve is this:
> > > >
> > > >
> > > >
> > > > [1,2,3,4] will be [1,2] [3,4]
> > > >
> > > > [1,2,3,4,5] will be [1,2,3] [3,4,5]
> > >
> > > So, I think
nnot figure out the type of [] in
'putStrLn $ show $ halve []'. You can write
putStrLn $ show $ halve ([] :: [Int])
to give it an explicit type. It's a bit annoying since we happen to
know that the type of the list makes no difference, but the compiler
can't figure that out.
-Brent
Send Beginners mailing list submissions to
beginners@haskell.org
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
beginners-requ...@haskell.org
You can r