[Haskell-cafe] Re: mutually recursive types
Jon Fairbairn
jon.fairbairn at cl.cam.ac.uk
Wed Aug 8 10:58:54 EDT 2007
"rodrigo.bonifacio" <rodrigo.bonifacio at uol.com.br> writes:
> Hi, I am learning the haskell programming language and had
> tried to define the following types:
>
> type Scenario = (String, String, [Step]) type Step =
> (String, Scenario, String, String, String)
data Scenario = Scenario String String [Step]
data Step = Step String Scenario String String String
--
Jón Fairbairn Jon.Fairbairn at cl.cam.ac.uk
More information about the Haskell-Cafe
mailing list