[prev in list] [next in list] [prev in thread] [next in thread]
List: hugs-bugs
Subject: Re: empty list bug?
From: Ralf Hinze <ralf () informatik ! uni-bonn ! de>
Date: 2001-06-04 15:12:43
Message-ID: 3B1BA56B.236FF3B2 () informatik ! uni-bonn ! de
[Download RAW message or body]
Dear Ernest,
this is my favourite Hugs `bug'. For an explanation see Simon Thompson'
page
on Some common (and not so common!) Hugs errors, cf `reverse []'.
Cheers, Ralf
> Sirs/Mesdames:
>
> We are considering a course using Haskell. We have "Hugs 98: Based on the
> haskell 98 standard Copyright 1994-2001,"
> downloaded just a few months ago. (This is under Windows NT.) The following
> puzzles us --
>
> From the prelude:
> take 1 [ ] -- expected to return the empty list [ ], instead
> gives error message:
> ERROR - Cannot find "show" function for:
> *** Expression : take 1 [ ]
> *** Of type : [a]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic