Thank you very much for your report! I really appreciate it.
I haven't installed ghc-7.4 yet (I also didn't try ghc-7.2, either),
so I was not aware of that issue. I will try to examine it. The error
may be because some typing rules of GADTs have been changed one time
when 7.0 -> 7.2 or 7.2 -> 7.4. For GADTs, automatic type inference is
not perfect, so we need to explicitly annotate the type of a function
in let statement.
Right now, I am now seeking for a computing environment where I can
safely sandbox ghc-7.4 and etc.. As soon as I will do that, I am going
to check it and update it.
I admit that my versioning practice is not good at all ;-P Currently,
I am trying to follow PVP for library packages but for main hxournal
program, doing so would be too fast major version change at this
stage, so I am not following PVP yet. But for libraries, it would also
have many violations against PVP currently.
Hope that this issue will be ameliorated in more professional way as I
gain more experience.
Thank you again for your detail feedback. I hope that you will enjoy
using the program.
best,
IW
On Sun, Feb 12, 2012 at 5:06 AM, Gero Kriependorf <gero...@physra.net> wrote:
> Hello Ian,
>
> I've tried to install hxournal with ghc-7.4 and had some failures.
>
> In Builder.hs from xournal-builder I've changed "import Data.Monoid" to
> "import Data.Monoid (Monoid(..))".
> In all Packages I've changed "fclabels == 1.0.*" to "fclabels == 1.*"
> because it's not possible to build fclabels-1.0.* on ghc-7.4.
> It seems to work fine with fclabels 1.1.
> I've also changed to "filepath == 1.3.*" in xournal-convert.
>
> Perhaps that's not all and i forgot some changes I did.
>
> After that torture I was able to build hxournal from git. Because I have
> no github account and I am not familiar with git I did not send Patches.
>
> After that I was still not able to build hxournal itself cause of the
> following error:
> -- SNIP --
> Resolving dependencies...
> Configuring hxournal-0.6.4.999...
> Building hxournal-0.6.4.999...
> Preprocessing library hxournal-0.6.4.999...
> [11 of 49] Compiling Application.HXournal.Type.PageArrangement (
> lib/Application/HXournal/Type/PageArrangement.hs,
> dist/build/Application/HXournal/Type/PageArrangement.o )
>
> lib/Application/HXournal/Type/PageArrangement.hs:171:52:
> Couldn't match type `ContinuousSinglePage' with `SinglePage'
> In the return type of a call of `SingleArrangement'
> In the expression: SingleArrangement cdim pdim vbbox
> In an equation for `setter':
> setter cdim (SingleArrangement _ pdim vbbox)
> = SingleArrangement cdim pdim vbbox
>
> lib/Application/HXournal/Type/PageArrangement.hs:181:52:
> Couldn't match type `ContinuousSinglePage' with `SinglePage'
> In the return type of a call of `SingleArrangement'
> In the expression: SingleArrangement cdim pdim vbbox
> In an equation for `setter':
> setter vbbox (SingleArrangement cdim pdim _)
> = SingleArrangement cdim pdim vbbox
> cabal: Error: some packages failed to install:
> hxournal-0.6.4.999 failed during the building phase. The exception was:
> ExitFailure 1
> -- SNAP --
>
> Do you know how to prevent it?
>
> By the way: Your work is great but your versioning isn't it. Please
> consider following the recommendations described here:
> http://www.haskell.org/haskellwiki/Package_versioning_policy
>
> Greetings
> Gero