Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

bob

By: a guest on Jun 5th, 2009  |  syntax: None  |  size: 1.19 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. $ ghci unlag.hs
  2. GHCi, version 6.8.2: http://www.haskell.org/ghc/  :? for help
  3. Loading package base ... linking ... done.
  4. [1 of 1] Compiling Main             ( unlag.hs, interpreted )
  5.  
  6. unlag.hs:7:43:
  7.     Couldn't match expected type `a' against inferred type `a1'
  8.       `a' is a rigid type variable bound by
  9.           the type signature for `max_unlagged' at unlag.hs:9:26
  10.       `a1' is a rigid type variable bound by
  11.            the type signature for `sv_fps' at unlag.hs:3:20
  12.     In the second argument of `(*)', namely `(1000 `div` fps)'
  13.     In the expression: max_unlagged_markers * (1000 `div` fps)
  14.     In the definition of `unlagged':
  15.         unlagged = max_unlagged_markers * (1000 `div` fps)
  16.  
  17. unlag.hs:10:0:
  18.     Inferred type is less polymorphic than expected
  19.       Quantified type variable `a' is mentioned in the environment:
  20.         max_unlagged_markers :: a (bound at unlag.hs:15:0)
  21.     When trying to generalise the type inferred for `max_unlagged'
  22.       Signature type:     forall a. (Integral a) => a -> (a, String)
  23.       Type to generalise: a -> (a, String)
  24.     In the type signature for `max_unlagged'
  25.     When generalising the type(s) for `max_unlagged'
  26. Failed, modules loaded: none.
  27. Prelude> Leaving GH