fork download
  1. Prelude> charFreqs' = map length . groupBy (==) . sort
  2.  
  3. <interactive>:1:27: error:
  4. Variable not in scope:
  5. groupBy :: (a1 -> a1 -> Bool) -> b0 -> [t0 a0]
  6.  
  7. <interactive>:1:42: error:
  8. • Variable not in scope: sort :: a -> b0
  9. • Perhaps you meant ‘sqrt’ (imported from Prelude)
  10. Prelude>
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘>’ token
 Prelude> charFreqs' = map length . groupBy (==) . sort
        ^
prog.c:1:19: warning: missing terminating ' character
 Prelude> charFreqs' = map length . groupBy (==) . sort
                   ^
prog.c:1:19: error: missing terminating ' character
 Prelude> charFreqs' = map length . groupBy (==) . sort
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:8:5: error: stray ‘\342’ in program
     • Variable not in scope: sort :: a -> b0
     ^
prog.c:8:6: error: stray ‘\200’ in program
     • Variable not in scope: sort :: a -> b0
      ^
prog.c:8:7: error: stray ‘\242’ in program
     • Variable not in scope: sort :: a -> b0
       ^
prog.c:9:5: error: stray ‘\342’ in program
     • Perhaps you meant ‘sqrt’ (imported from Prelude)
     ^
prog.c:9:6: error: stray ‘\200’ in program
     • Perhaps you meant ‘sqrt’ (imported from Prelude)
      ^
prog.c:9:7: error: stray ‘\242’ in program
     • Perhaps you meant ‘sqrt’ (imported from Prelude)
       ^
prog.c:9:27: error: stray ‘\342’ in program
     • Perhaps you meant ‘sqrt’ (imported from Prelude)
                           ^
prog.c:9:28: error: stray ‘\200’ in program
     • Perhaps you meant ‘sqrt’ (imported from Prelude)
                            ^
prog.c:9:29: error: stray ‘\230’ in program
     • Perhaps you meant ‘sqrt’ (imported from Prelude)
                             ^
prog.c:9:34: error: stray ‘\342’ in program
     • Perhaps you meant ‘sqrt’ (imported from Prelude)
                                  ^
prog.c:9:35: error: stray ‘\200’ in program
     • Perhaps you meant ‘sqrt’ (imported from Prelude)
                                   ^
prog.c:9:36: error: stray ‘\231’ in program
     • Perhaps you meant ‘sqrt’ (imported from Prelude)
                                    ^
stdout
Standard output is empty