Created
December 21, 2016 02:24
-
-
Save amosr/c9cb7dabcd967d2b15644cbd0ccace84 to your computer and use it in GitHub Desktop.
GHC dynamic bug maybe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compile once | |
$ ghc -c Test.hs | |
# We get a .o out | |
$ ls -l | |
total 24 | |
-rw-r--r-- 1 amos staff 757 21 Dec 13:22 Test.hi | |
-rw-r--r-- 1 amos staff 42 21 Dec 13:17 Test.hs | |
-rw-r--r-- 1 amos staff 1708 21 Dec 13:22 Test.o | |
# Compile again with dynamic-too doesn't rerun | |
$ ghc -c Test.hs -dynamic-too | |
compilation IS NOT required | |
# But just touches .dyn_o, creating an empty file | |
$ ls -l | |
total 24 | |
-rw-r--r-- 1 amos staff 0 21 Dec 13:23 Test.dyn_o | |
-rw-r--r-- 1 amos staff 757 21 Dec 13:22 Test.hi | |
-rw-r--r-- 1 amos staff 42 21 Dec 13:17 Test.hs | |
-rw-r--r-- 1 amos staff 1708 21 Dec 13:23 Test.o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Test where | |
foo :: Int | |
foo = 1 + 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
same deal with a head from a few months ago