commercialhaskell / stackage

Stable Haskell package sets: vetted consistent packages from Hackage
https://www.stackage.org/
MIT License
530 stars 805 forks source link

ShellCheck 0.4.5 #2007

Closed bergmark closed 8 years ago

bergmark commented 8 years ago

Ping @yamadapc

Preprocessing library language-dockerfile-0.3.4.0...
[ 1 of 15] Compiling Paths_language_dockerfile ( dist/build/autogen/Paths_language_dockerfile.hs, dist/build/Paths_language_dockerfile.o )
[ 2 of 15] Compiling Language.Dockerfile.Bash ( src/Language/Dockerfile/Bash.hs, dist/build/Language/Dockerfile/Bash.o )

src/Language/Dockerfile/Bash.hs:9:20: error:
    • The constructor ‘PositionedComment’ should have 3 arguments, but has been given 2
    • In the pattern: PositionedComment _ c
      In an equation for ‘comment’: comment (PositionedComment _ c) = c
      In an equation for ‘shellcheck’:
          shellcheck bashScript
            = map comment $ crComments $ runIdentity $ checkScript si spec
            where
                comment (PositionedComment _ c) = c
                si = mockedSystemInterface [("", "")]
                spec = CheckSpec filename script exclusions (Just Bash)
                script = "#!/bin/bash\n" ++ bashScript
                ....
yamadapc commented 8 years ago

Fixed in v0.3.5.0