Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-26 Thread Albert Y. C. Lai
On 12-11-27 01:02 AM, kudah wrote: On Mon, 26 Nov 2012 18:21:33 -0500 "Albert Y. C. Lai" wrote: Lastly, there is no "Setup install". Use "copy" and "register". $ runghc Setup.hs --help [...] install Copy the files into the install locations. Run register. copy Copy the

Re: [Haskell-cafe] Can a GC delay TCP connection formation?

2012-11-26 Thread Ertugrul Söylemez
Jeff Shaw wrote: > I've run into an issue that makes me think that when the GHC GC runs > while a Snap or Warp HTTP server is serving connections, the GC > prevents or delays TCP connections from forming. My application > requires that TCP connections form within a few tens of milliseconds. > I'm

Re: [Haskell-cafe] Observer pattern in haskell FRP

2012-11-26 Thread Ertugrul Söylemez
Nathan Hüsken wrote: > When writing games in other (imperative) languages, I like to separate > the game logic from the rendering. For this I use something similar to > the observer pattern. > > [...] > > So I am wondering: Is there (or can someone think of) a different > pattern by which this co

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-26 Thread kudah
On Mon, 26 Nov 2012 18:21:33 -0500 "Albert Y. C. Lai" wrote: > Lastly, there is no "Setup install". Use "copy" and "register". $ runghc Setup.hs --help > This Setup program uses the Haskell Cabal Infrastructure. > See http://www.haskell.org/cabal/ for more information. > > Usage: Setup.hs COMMA

[Haskell-cafe] Can a GC delay TCP connection formation?

2012-11-26 Thread Jeff Shaw
Hello, I've run into an issue that makes me think that when the GHC GC runs while a Snap or Warp HTTP server is serving connections, the GC prevents or delays TCP connections from forming. My application requires that TCP connections form within a few tens of milliseconds. I'm wondering if any

Re: [Haskell-cafe] Observer pattern in haskell FRP

2012-11-26 Thread Тимур Амиров
Not sure, but maybe you can define a Drawable class with a method in converting inner state to something draw func could use, so it would be like this: draw :: Drawable a => a -> IO () вторник, 27 ноября 2012 г. пользователь Nathan Hüsken писал: > Hey, > > When writing games in other (imperativ

Re: [Haskell-cafe] Equality test between types that returns type-level Bool ?

2012-11-26 Thread Takayuki Muranushi
Dear Gábor, Erik, and Oleg, Thank you for your advices. Also what I have wanted, the extensible dimensional type system, has just been released. http://hackage.haskell.org/package/unittyped-0.1 Now I have homeworks to test these, thank you! 2012/11/27 Erik Hesselink > If you're up for it, O

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-26 Thread Albert Y. C. Lai
On 12-11-26 04:34 AM, Kim-Ee Yeoh wrote: Nice tip, Albert! Good to know! One question I have is, is (runghc Setup.lhs) equivalent to (cabal) in runghc Setup.lhs <$> [configure, build, install] ? Setup defaults to --global --prefix=/usr/local cabal defaults to --user --prefix=$HOME/.cabal Thi

[Haskell-cafe] Observer pattern in haskell FRP

2012-11-26 Thread Nathan Hüsken
Hey, When writing games in other (imperative) languages, I like to separate the game logic from the rendering. For this I use something similar to the observer pattern. With rendering I mean anything only related to how objects are drawn to the screen. Animation state for example. On my journey

Re: [Haskell-cafe] Equality test between types that returns type-level Bool ?

2012-11-26 Thread Erik Hesselink
If you're up for it, Oleg has a lot of interesting material about this subject [1]. Regards, Erik [1] http://okmij.org/ftp/Haskell/typeEQ.html On Sun, Nov 25, 2012 at 9:36 AM, Takayuki Muranushi wrote: > Is it possible to write > > type family SameType a b :: Bool > > which returns True if a

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-26 Thread Kim-Ee Yeoh
Nice tip, Albert! Good to know! One question I have is, is (runghc Setup.lhs) equivalent to (cabal) in runghc Setup.lhs <$> [configure, build, install] ? On Mon, Nov 26, 2012 at 8:08 AM, Brent Yorgey wrote: > > [cabal haddock, if you want] > > cabal copy > > cabal register > > Even this does no

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-26 Thread Herbert Valerio Riedel
Brent Yorgey writes: > On Sun, Nov 25, 2012 at 06:09:26PM -0500, Albert Y. C. Lai wrote: >> If you begin with "cabal configure", the correct idiom is: >> >> cabal configure [flags] >> cabal build >> [cabal haddock, if you want] >> cabal copy >> cabal register > > Even this does not do the same t