Haskell Platform 2010.1.0.0 Windows installer RC3

Hi all, I've uploaded the third (and, hopefully, final) RC of the Haskell Platform 2010.1.0.0 Windows installer to http://code.haskell.org/~refold/HaskellPlatform-2010.1.0.0-setup.exe Unless someone finds serious bugs in this RC, it can be released unchanged. What's new in 2010.1.0.0-rc3: * Fixed a PATH issue that prevented alex and happy from working (reported by Krasimir Angelov) * $APPDATA/cabal/bin is now added to PATH (reported by Han Joosten) -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments

Why alex, happy and cabal are in lib\extralibs\bin now? This directory
is not in the search path and in general it would be better if all
executables were in the same place.
On Tue, Mar 30, 2010 at 11:57 AM, Mikhail Glushenkov
Hi all,
I've uploaded the third (and, hopefully, final) RC of the Haskell Platform 2010.1.0.0 Windows installer to
http://code.haskell.org/~refold/HaskellPlatform-2010.1.0.0-setup.exe
Unless someone finds serious bugs in this RC, it can be released unchanged.
What's new in 2010.1.0.0-rc3:
* Fixed a PATH issue that prevented alex and happy from working (reported by Krasimir Angelov)
* $APPDATA/cabal/bin is now added to PATH (reported by Han Joosten)
-- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments _______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries

The directory were in the path but Haskell\bin is before Haskell Platform\bin in the path and I had older versions of happy and alex in Haskell\bin. Still it would be nicer if all executables and all libraries were in the same place but this is minor issue. One more issue. When I am compiling Happy grammar I get warnings like the one bellow. This suggests that maybe the templates for Happy should be updated. templates\GenericTemplate.hs:110:15: Warning: Bindings containing unlifted types must use an outermost bang pattern: { new_state = (n Happy_GHC_Exts.-# (1# :: Happy_GHC_Exts.Int#)) } *** This will be an error in GHC 6.14! Fix your code now! In a case alternative: n -> happyShift new_state i tk st where new_state = (n Happy_GHC_Exts.-# (1# :: Happy_GHC_Exts.Int#)) In the expression: case action of { 0# -> happyFail i tk st -1# -> happyAccept i tk st n | (n Happy_GHC_Exts.<# (0# :: Happy_GHC_Exts.Int#)) -> (happyReduceArr Happy_Data_Array.! rule) i tk st where rule = (Happy_GHC_Exts.I# ((Happy_GHC_Exts.negateInt# ((n Happy_GHC_Exts.+# (1# :: Happy_GHC_Exts.Int#)))))) n -> happyShift new_state i tk st where new_state = (n Happy_GHC_Exts.-# (1# :: Happy_GHC_Exts.Int#)) } In the definition of `happyDoAction': happyDoAction i tk st = case action of { 0# -> happyFail i tk st -1# -> happyAccept i tk st n | (n Happy_GHC_Exts.<# (0# :: Happy_GHC_Exts.Int#)) -> (happyReduceArr Happy_Data_Array.! rule) i tk st where rule = (Happy_GHC_Exts.I# ((Happy_GHC_Exts.negateInt# ((n Happy_GHC_Exts.+# (1# :: Happy_GHC_Exts.Int#)))))) n -> happyShift new_state i tk st where new_state = (n Happy_GHC_Exts.-# (1# :: Happy_GHC_Exts.Int#)) } where off = indexShortOffAddr happyActOffsets st off_i = (off Happy_GHC_Exts.+# i) check = if (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) then (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i) else False action | check = indexShortOffAddr happyTable off_i | otherwise = indexShortOffAddr happyDefActions st

Hi,
Krasimir Angelov
Why alex, happy and cabal are in lib\extralibs\bin now?
Alex and Happy search for template files in ../{alex-$VERSION,happy-$VERSION}, relative to the executable location. If I had left them in $INSTDIR\bin, I'd have to put these folders in the root HP directory, which is not very nice. I think that putting all "extra HP stuff" under libs\extralibs is a cleaner solution.
The directory were in the path but Haskell\bin is before Haskell Platform\bin in the path and I had older versions of happy and alex in Haskell\bin. Still it would be nicer if all executables and all libraries were in the same place but this is minor issue.
One more issue. When I am compiling Happy grammar I get warnings like the one bellow. This suggests that maybe the templates for Happy should be updated.
Bring this up with Happy's maintainer. BTW, there are also a lot of warnings when compiling Happy itself - it would be nice to get those fixed too.
participants (2)
-
Krasimir Angelov
-
Mikhail Glushenkov