Wednesday, 15 August 2012

Haskell - Compiler not unregisterised, so ignoring -C -



Haskell - Compiler not unregisterised, so ignoring -C -

i'm trying compile haskell code (.hs) c code (.c) on ubuntu 14.04 system.

these contents of mylast.hs file:

mylast [] = error("please provide non-empty list!") mylast [x] = x mylast (x:xs) = mylast xs main = print $ mylast [1,2,3,4]

i ran next command:

ghc -c mylast.hs

and got next output:

on commandline: warning: compiler not unregisterised, ignoring -c [1 of 1] compiling main ( mylast.hs, mylast.o ) linking 1_to_10 ...

following files generated:

mylast.o mylast.hi mylast

i don't quite understand output message. how can prepare this?

i appreciate help.

c haskell ghc

No comments:

Post a Comment