Created
June 29, 2017 19:15
-
-
Save swuecho/a0e7bc8be786c8b87292a2cf502dcbfd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Prelude> (fmap . const) 1 [1..5] | |
| [1,1,1,1,1] | |
| Prelude> fmap . const 1 [1..5] | |
| <interactive>:29:1: error: | |
| • Non type-variable argument in the constraint: Num (a1 -> a -> b) | |
| (Use FlexibleContexts to permit this) | |
| • When checking the inferred type | |
| it :: forall b a (f :: * -> *) a1. | |
| (Num (a1 -> a -> b), Functor f) => | |
| a1 -> f a -> f b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.