Ho creato alcuni file da un progetto in Unix, sono molto e se voglio eseguirlo su un altro pc o cartella ho bisogno di copiare tutti i file lì. Sono tutti collegati nell'importazione . Come posso creare un programma haskell eseguibile?Compilare più file .hs di Haskell - Unix
devo per esempio:
main.hs - main where all the program executes; using,besides haskell, unix shell.
ex1.hs - basically types of data, some functions.
ex2.lhs - same as ex1.lhs but is literate with LaTeX
pic.jpg - picture to use on the pdflatex
package.sty - package needed to use some functions
Come continuo e compilare tutti questi? Ho provato ad utilizzare ghc ma dando sempre errori:
>ghc -o MAIN main.hs ex1.hs ex2.lhs pic.jpg package.sty
Failed to load interface for 'ex1.hs'
Ed è nella linea che ha ex1.hs importazione
Curioso è che se io commercio ex1.hs importazione a importazione ex2.lhs riga darà errore su ex2
Intendevi _ghc_? –
Come si desidera compilare un file '.jpg'- o' .sty'? Dovrebbe essere incorporato nell'eseguibile? – dflemstr
Sì, ne ho bisogno perché il programma crea un pdf e ho bisogno che jpg e sty siano un pacchetto – MrFabio