Created
July 10, 2016 13:42
-
-
Save krisajenkins/8b2de1d221f2c26a55b6fa1a02dfc74d to your computer and use it in GitHub Desktop.
Demostrates a dependency-checking bug in elm-make.
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
#!/bin/sh | |
############################################################ | |
# Create a simple working program. | |
############################################################ | |
cat <<EOF > Foo.elm | |
module Foo exposing (..) | |
type alias Foo = Int | |
EOF | |
cat << EOF > Bar.elm | |
module Bar exposing (..) | |
import Foo exposing (..) | |
bar : Foo | |
bar = 42 | |
EOF | |
############################################################ | |
# Compile successfully. | |
############################################################ | |
elm make --yes --warn Bar.elm | |
############################################################ | |
# Alter the program so it's broken. | |
############################################################ | |
echo >> Bar.elm | |
cat <<EOF > Foo.elm | |
module Foo exposing (..) | |
type alias Foo = String | |
EOF | |
############################################################ | |
# Compile. This should fail, but most of the time it won't. | |
############################################################ | |
elm make --yes --warn Bar.elm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version that gathers statistics in a stupid way.