bartavelle / language-puppet

A library to work with Puppet manifests, test them and eventually replace everything ruby.
BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

Problem installing on Debian Jessie 64 bit. #120

Closed klynton closed 9 years ago

klynton commented 9 years ago

Hi,

I was trying to get this to install on Debian Jessie and I can't get it to build. After installing the haskell universe and running a cabal install language-puppet it's failing with the error:

[43 of 45] Compiling Puppet.Preferences ( Puppet/Preferences.hs, dist/build/Puppet/Preferences.o )
[44 of 45] Compiling Erb.Compute      ( Erb/Compute.hs, dist/build/Erb/Compute.o )

Erb/Compute.hs:98:79:
    No instance for (Data.String.IsString TemplateParseError)
      arising from a use of `lazyQuery'
    Possible fix:
      add an instance declaration for
      (Data.String.IsString TemplateParseError)
    In the expression: lazyQuery filecache ufilename
    In the second argument of `($)', namely
      `lazyQuery filecache ufilename
       $ fmap encapsulateError (parseErbFile ufilename)'
    In the expression:
      measure mstats ("parsing - " <> filename)
      $ lazyQuery filecache ufilename
        $ fmap encapsulateError (parseErbFile ufilename)
Failed to install language-puppet-1.1.0
cabal: Error: some packages failed to install:
language-puppet-1.1.0 failed during the building phase. The exception was:
ExitFailure 1
bartavelle commented 9 years ago

For some reason you are buulding an old version. The latest on hackage is 1.1.3.1. What's your build plan ?