Vous êtes sur la page 1sur 3

Haskell Rocks !!!

zareac@zareac:~$ ghc ghc: no input files Usage: For basic information, try the `--help' option. zareac@zareac:~$ ghc-prof ghc-prof: command not found zareac@zareac:~$ sudo apt-get install ghc ghc-prof cabal-install [sudo] password for zareac: Reading package lists... Done Building dependency tree Reading state information... Done cabal-install is already the newest version. ghc is already the newest version. The following packages were automatically installed and are no longer required: linux-headers-3.2.0-31-generic libutouch-grail1 libunity6 linux-headers-3.2.0-34-generic linux-headers-3.2.0-29-generic linux-headers-3.2.0-31 linux-headers-3.2.0-32 linux-headers-3.2.0-34 linux-headers-3.2.0-29 linux-headers-3.2.0-32-generic linux-headers-3.2.0-34-generic-pae linux-headers-3.2.0-29-generic-pae linux-headers-3.2.0-31-generic-pae libutouch-evemu1 libdee-1.0-1 libutouch-frame1 libutouch-geis1 linux-headers-3.2.0-32-generic-pae Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: ghc-prof 0 upgraded, 1 newly installed, 0 to remove and 37 not upgraded. Need to get 39.3 MB of archives. After this operation, 207 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://archive.ubuntu.com/ubuntu/ precise/universe ghc-prof i386 7.4.11ubuntu2 [39.3 MB] Fetched 39.3 MB in 1min 9s (563 kB/s) Selecting previously unselected package ghc-prof. (Reading database ... 460460 files and directories currently installed.) Unpacking ghc-prof (from .../ghc-prof_7.4.1-1ubuntu2_i386.deb) ... Setting up ghc-prof (7.4.1-1ubuntu2) ... zareac@zareac:~$ ghc ghc: no input files Usage: For basic information, try the `--help' option. zareac@zareac:~$ cd Documents/ zareac@zareac:~/Documents$ gedit maths.hs

zareac@zareac:~/Documents$ ghc -O2 --make maths.hs -threaded [1 of 1] Compiling Main ( maths.hs, maths.o ) Linking maths ... zareac@zareac:~/Documents$ time ./maths +RTS -N2 maths: Using large values for -N is not allowed by default. Link with -rtsopts to allow full control. real 0m0.004s user 0m0.000s sys 0m0.000s zareac@zareac:~/Documents$ gedit maths.hs zareac@zareac:~/Documents$ ghc -O2 --make maths.hs -threaded [1 of 1] Compiling Main ( maths.hs, maths.o ) Linking maths ... zareac@zareac:~/Documents$ time ./maths +RTS -N2 maths: Using large values for -N is not allowed by default. Link with -rtsopts to allow full control. real 0m0.004s user 0m0.000s sys 0m0.000s zareac@zareac:~/Documents$ time ./maths +RTSOPTS -N2 A = 8189 B = 5040 C = 34 real 0m1.864s user 0m1.776s sys 0m0.028s

zareac@zareac:~/Documents$

Vous aimerez peut-être aussi