Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Haskell iterate over integer

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.32 sec, absolute service time: 0,52 sec 
fork mode |  history
Error(s):
444231399/source.hs:3:34: error:
    • Couldn't match expected type ‘[Integer]’
                  with actual type ‘Integer’
    • In the second argument of ‘map’, namely ‘(1 :: Integer)’
      In the second argument of ‘($)’, namely
        ‘map fromIntegral (1 :: Integer)’
      In the expression: print $ map fromIntegral (1 :: Integer)

        

    
                
λ
.NET NoSQL database for rapid development