From trac at galois.com Mon Jun 11 08:11:28 2007 From: trac at galois.com (Hugs) Date: Mon Jun 11 08:06:35 2007 Subject: [Hugs] #74: Data.Word64: arithmetic overflow when evaluating maxBound + 1 Message-ID: <061.ef9c7cbbf52510a2271146bf663dffb3@localhost> #74: Data.Word64: arithmetic overflow when evaluating maxBound + 1 ---------------------------------------------------+------------------------ Reporter: guest | Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: hugs | Version: 200609 Keywords: Data.Word.Word64, arithmetic overflow | ---------------------------------------------------+------------------------ The function (fromInteger x) in Num(Data.Word.Word64) causes a program error, if x is greater or equal 2^64^. This is particularly annoying when two valid Word64 variables are to be multiplied. Take for instance {{{ Data.Word> maxbound :: Word64 18446744073709551615 Data.Word> 2*(2^63) :: Word64 Program error: arithmetic overflow Data.Word> (2^64) :: Word64 Program error: arithmetic overflow }}} GHC and GHCi return values mod 2^64^, as Hugs does also for Word32 and 2^32^. -- Ticket URL: Hugs Hugs 98, an interpreter for Haskell From trac at galois.com Tue Jun 12 17:36:16 2007 From: trac at galois.com (Hugs) Date: Tue Jun 12 17:31:19 2007 Subject: [Hugs] #75: Please update FAQ to address whether a "no install" version of Hugs is available. Thx! Message-ID: <061.4fa233c804110f9090c6a73f512ac02a@localhost> #75: Please update FAQ to address whether a "no install" version of Hugs is available. Thx! ----------------------------+----------------------------------------------- Reporter: guest | Owner: nobody Type: task | Status: new Priority: minor | Milestone: Component: hugs | Version: 200609 Keywords: faq no install | ----------------------------+----------------------------------------------- Would be nice if FAQ said yes/no on this issue. Thanks much. -- Ticket URL: Hugs Hugs 98, an interpreter for Haskell From trac at galois.com Tue Jun 12 17:36:42 2007 From: trac at galois.com (Hugs) Date: Tue Jun 12 17:31:45 2007 Subject: [Hugs] #75: Please update FAQ to address whether a "no install" version of Hugs is available. Thx! In-Reply-To: <061.4fa233c804110f9090c6a73f512ac02a@localhost> References: <061.4fa233c804110f9090c6a73f512ac02a@localhost> Message-ID: <070.2ccb6235660e28d71ce7d9786884dfdb@localhost> #75: Please update FAQ to address whether a "no install" version of Hugs is available. Thx! --------------------+------------------------------------------------------- Reporter: guest | Owner: nobody Type: task | Status: new Priority: minor | Milestone: Component: hugs | Version: 200609 Resolution: | Keywords: faq no install --------------------+------------------------------------------------------- -- Ticket URL: Hugs Hugs 98, an interpreter for Haskell From trac at galois.com Tue Jun 12 19:01:10 2007 From: trac at galois.com (Hugs) Date: Tue Jun 12 18:56:13 2007 Subject: [Hugs] #75: Please update FAQ to address whether a "no install" version of Hugs is available. Thx! In-Reply-To: <061.4fa233c804110f9090c6a73f512ac02a@localhost> References: <061.4fa233c804110f9090c6a73f512ac02a@localhost> Message-ID: <070.c31a7fa82c7cff1bcf3f0d0ef045d9b7@localhost> #75: Please update FAQ to address whether a "no install" version of Hugs is available. Thx! --------------------------+------------------------------------------------- Reporter: guest | Owner: nobody Type: enhancement | Status: new Priority: minor | Milestone: Component: hugs | Version: 200609 Resolution: | Keywords: faq no install --------------------------+------------------------------------------------- Changes (by ross): * type: task => enhancement Comment: I don't understand the question. Please expand. -- Ticket URL: Hugs Hugs 98, an interpreter for Haskell From trac at galois.com Tue Jun 12 19:09:18 2007 From: trac at galois.com (Hugs) Date: Tue Jun 12 19:04:20 2007 Subject: [Hugs] #75: Please update FAQ to address whether a "no install" version of Hugs is available. Thx! In-Reply-To: <061.4fa233c804110f9090c6a73f512ac02a@localhost> References: <061.4fa233c804110f9090c6a73f512ac02a@localhost> Message-ID: <070.76359a926b95d07c7e56e48d40ed92aa@localhost> #75: Please update FAQ to address whether a "no install" version of Hugs is available. Thx! --------------------------+------------------------------------------------- Reporter: guest | Owner: nobody Type: enhancement | Status: new Priority: minor | Milestone: Component: hugs | Version: 200609 Resolution: | Keywords: faq no install --------------------------+------------------------------------------------- Comment (by neil): In particular, is this a Windows or a Linux question? -- Ticket URL: Hugs Hugs 98, an interpreter for Haskell From igloo at earth.li Tue Jun 12 20:34:33 2007 From: igloo at earth.li (Ian Lynagh) Date: Tue Jun 12 20:29:35 2007 Subject: [Hugs] #75: Please update FAQ to address whether a "no install" version of Hugs is available. Thx! In-Reply-To: <070.c31a7fa82c7cff1bcf3f0d0ef045d9b7@localhost> References: <061.4fa233c804110f9090c6a73f512ac02a@localhost> <070.c31a7fa82c7cff1bcf3f0d0ef045d9b7@localhost> Message-ID: <20070613003433.GA20143@matrix.chaos.earth.li> On Tue, Jun 12, 2007 at 11:01:10PM -0000, Hugs wrote: > #75: Please update FAQ to address whether a "no install" version of Hugs is > available. Thx! > > I don't understand the question. Please expand. I think he wants a hugs binary tarball/zip that you can just untar/unzip and use in-place. Thanks Ian From fatih.asici at gmail.com Sun Jun 17 12:48:26 2007 From: fatih.asici at gmail.com (Fatih =?utf-8?q?A=C5=9F=C4=B1c=C4=B1?=) Date: Sun Jun 17 12:33:51 2007 Subject: Build system corrupts LDFLAGS options Message-ID: <200706171948.27061.fatih.asici@gmail.com> Hi, I am trying to compile hugs98 with LDFLAGS="-Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort" While compiling OpenGL stuff, somehow it changes LDFLAGS to -Wl -Bdirect -hashvals -zdynsort and causes the build process to fail with the following messages: i686-pc-linux-gnu-gcc: unrecognized option `-hashvals' i686-pc-linux-gnu-gcc: unrecognized option `-zdynsort' cc1: error: unrecognized command line option "-Wl" runhugs: Error occurred How can I build hugs98 with these flags? Thanks, Fatih From ndmitchell at gmail.com Mon Jun 25 21:09:25 2007 From: ndmitchell at gmail.com (Neil Mitchell) Date: Mon Jun 25 21:03:45 2007 Subject: Stack overflow on words (repeat 'a') Message-ID: <404396ef0706251809r5ce27666o1ae52173b16d13b0@mail.gmail.com> Hi With the expression: words (repeat 'a') Using WinHugs Sep 06 I get a stack overflow. Using Hugs Linux May 06 I get a GC fails to reclaim sufficient space error Using GHC and Yhc both of these succeed. I have a similar issue in one of my functions which is showing the same behaviour. Thanks Neil From claus.reinke at talk21.com Tue Jun 26 06:47:44 2007 From: claus.reinke at talk21.com (Claus Reinke) Date: Tue Jun 26 06:42:06 2007 Subject: Stack overflow on words (repeat 'a') References: <404396ef0706251809r5ce27666o1ae52173b16d13b0@mail.gmail.com> Message-ID: <006601c7b7df$6e717db0$780f8351@cr3lt> > With the expression: words (repeat 'a') > > Using WinHugs Sep 06 I get a stack overflow. > > Using Hugs Linux May 06 I get a GC fails to reclaim sufficient space error > > Using GHC and Yhc both of these succeed. > > I have a similar issue in one of my functions which is showing the > same behaviour. assuming you've got a terminating application in mind,-) a slightly more interesting expression is: test span = span (/=' ') $ replicate 100000 'a' ++ [' '] without optimizations, hugs is prone to fail for such deep applications of non-tail-recursive functions like span/break, splitAt, .. try this variation: span p l = span' p l id where span' p [] = \c->c ([],[]) span' p xs@(x:xs') | p x = span' p xs' . (\c (a,b)->c (x:a,b)) | otherwise = \c->c ([],xs) claus From claus.reinke at talk21.com Tue Jun 26 07:26:20 2007 From: claus.reinke at talk21.com (Claus Reinke) Date: Tue Jun 26 07:20:43 2007 Subject: Stack overflow on words (repeat 'a') References: <404396ef0706251809r5ce27666o1ae52173b16d13b0@mail.gmail.com> <006601c7b7df$6e717db0$780f8351@cr3lt> Message-ID: <007701c7b7e4$d3688f60$780f8351@cr3lt> i should have mentioned that Prelude.span is less strict, so: span p l = span' p l id where span' p [] = \c->c ([],[]) span' p xs@(x:xs') | p x = span' p xs' . (\c (a,b)->c (x:a,b)) | otherwise = \c->c ([],xs) -- Prelude.span fails, span succeeds test1 span = span (/=' ') $ replicate 1000000 'a' ++ [' '] test2 span = span (/=' ') $ take 1000000 (cycle "abc") ++ [' '] -- Prelude.span succeeds, span fails test3 span = take 1000000 $ fst $ span (/=' ') $ repeat 'a' claus From trac at galois.com Wed Jun 27 09:43:20 2007 From: trac at galois.com (Hugs) Date: Wed Jun 27 09:37:36 2007 Subject: [Hugs] #76: Add pattern guards Message-ID: <061.2a30f87a4c5efed892c5a26934801f7f@localhost> #76: Add pattern guards -------------------------+-------------------------------------------------- Reporter: neil | Owner: nobody Type: enhancement | Status: new Priority: minor | Milestone: Component: hugs | Version: 200609 Keywords: | -------------------------+-------------------------------------------------- Yhc, nhc and GHC all support pattern guards. It would be lovely if Hugs did as well, since they are incredibly handy. The absence of pattern guards means that Hugs cannot compile the central StackSet module in XMonad, amongst other things. http://research.microsoft.com/Users/simonpj/Haskell/guards.html -- Ticket URL: Hugs Hugs 98, an interpreter for Haskell