[EMAIL PROTECTED] reports the following problem.
Version: Hugs 1.4
OS: Linux 2.0 (debian)
compiler: gcc
configuration:
Expected behaviour:
Hugs should accept the following definition
data Arvore = Folha Int
| No String Arvore Arvore
deriving Show
Observed behaviour:
I must rewrite de definition without the A (Arvore is tree
in portuguese)
data Arvore = Folha Int
| No String Arvore Arvore
deriving Show
Transcript:
hilbert: hugs
___ ___ ___ ___ __________ __________
/ / / / / / / / / _______/ / _______/ Hugs 1.4
/ /___/ / / / / / / / _____ / /______
/ ____ / / / / / / / /_ / /______ / The Nottingham and Yale
/ / / / / /___/ / / /___/ / _______/ / Haskell User's System
/__/ /__/ /_________/ /_________/ /_________/ January 1998
Copyright (c) The University of Nottingham and Yale University, 1994-1997.
Bug reports: [EMAIL PROTECTED] Web: http://www.haskell.org/hugs.
Reading file "/usr/local/lib/hugs/lib/Prelude.hs":
Hugs session for:
/usr/local/lib/hugs/lib/Prelude.hs
Type :? for help
Prelude>:l teste
Reading file "teste.hs":
Parsing
ERROR "teste.hs" (line 3): Syntax error in input (unexpected `=')
Code: