Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.haskell > #424

Re: is applied to too many type arguments In the type signature for

From Mark Carroll <mtbc@bcs.org>
Newsgroups comp.lang.haskell
Subject Re: is applied to too many type arguments In the type signature for
Date 2016-07-26 09:17 +0100
Organization none
Message-ID <87bn1kx17a.fsf@ixod.org> (permalink)
References <6b42a993-74c6-4302-9807-1ac7588c9033@googlegroups.com>

Show all headers | View raw


On 26 Jul 2016, meInvent bbird wrote:

> data Operation
>   = MA
>   | MB
>     deriving Show
>
> getAllTreesFromList :: (Operation b, Double a) => [b] -> [a] -> [Mree a]

Between the round parentheses one mentions typeclasses, not types.
Perhaps you meant something like,

	getAllTreesFromList :: [Operation] -> [Double] -> [Mree a]

-- Mark

Back to comp.lang.haskell | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

is applied to too many type arguments In the type signature for meInvent bbird <jobmattcon@gmail.com> - 2016-07-26 00:02 -0700
  Re: is applied to too many type arguments In the type signature for Mark Carroll <mtbc@bcs.org> - 2016-07-26 09:17 +0100

csiph-web