[Haskell-cafe] Beginners Question: Problem with Data Type Declaration

Johan Tibell johan.tibell at gmail.com
Thu Jun 16 10:03:42 CEST 2011


Hi,

On Thu, Jun 16, 2011 at 9:53 AM, kaffeepause73 <kaffeepause73 at yahoo.de> wrote:
> I try to create an own data type containing "Vector Double" from the H-Matrix
> package. The code:
>
> ##
>
> data PowerSig = PowerSig Int Double Vector Double

You need to put parenthesis around (Vector Double). Otherwise this is
interpreted as a constructor with 4 fields (instead of 3).

Johan



More information about the Haskell-Cafe mailing list