Skip to content

Instantly share code, notes, and snippets.

@bananu7
Created February 21, 2014 12:35
Show Gist options
  • Save bananu7/e5f6457dfa32a355e7a5 to your computer and use it in GitHub Desktop.
Save bananu7/e5f6457dfa32a355e7a5 to your computer and use it in GitHub Desktop.
myDraw :: Glisha [Instance] ()
myDraw = do
-- ...
traversed.position.x %= change
samples/sample2.hs:40:16:
No instance for (Functor f0) arising from a use of `position'
The type variable `f0' is ambiguous
Possible fix: add a type signature that fixes these type variable(s)
Note: there are several potential instances:
instance Functor
(JuicyPixels-3.1.3.2:Codec.Picture.ColorQuant.Fold a)
-- Defined in `JuicyPixels-3.1.3.2:Codec.Picture.ColorQuant'
instance Functor Data.Complex.Complex
-- Defined in `linear-1.6:Linear.Instances'
instance Functor linear-1.6:Linear.Quaternion.Quaternion
-- Defined in `linear-1.6:Linear.Quaternion'
...plus 52 others
In the first argument of `(.)', namely `position'
In the expression: position . (element 0)
In an equation for `getX': getX = position . (element 0)
samples/sample2.hs:40:26:
No instance for (Indexable Int p0) arising from a use of `element'
The type variable `p0' is ambiguous
Possible fix: add a type signature that fixes these type variable(s)
Note: there are several potential instances:
instance Indexable i (->)
-- Defined in `Control.Lens.Internal.Indexed'
instance i ~ j => Indexable i (Indexed j)
-- Defined in `Control.Lens.Internal.Indexed'
Possible fix: add an instance declaration for (Indexable Int p0)
In the second argument of `(.)', namely `(element 0)'
In the expression: position . (element 0)
In an equation for `getX': getX = position . (element 0)
samples/sample2.hs:41:18:
No instance for (Traversable f1) arising from a use of `traversed'
The type variable `f1' is ambiguous
Possible fix: add a type signature that fixes these type variable(s)
Note: there are several potential instances:
instance Traversable Data.Complex.Complex
-- Defined in `linear-1.6:Linear.Instances'
instance Traversable linear-1.6:Linear.Quaternion.Quaternion
-- Defined in `linear-1.6:Linear.Quaternion'
instance Traversable ((,) b)
-- Defined in `Control.Lens.Internal.Instances'
...plus 21 others
In the first argument of `(.)', namely `traversed'
In the expression: traversed . getX
In an equation for `everyX': everyX = traversed . getX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment