Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Building with the latest version of haskeline
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jason Dagit  
View profile  
 More options Oct 28 2012, 7:42 pm
From: Jason Dagit <dag...@gmail.com>
Date: Sun, 28 Oct 2012 16:42:08 -0700
Local: Sun, Oct 28 2012 7:42 pm
Subject: Re: [Idris] Building with the latest version of haskeline

Sent!

The only things that I think we can break with this are:
  * If you really depend on lazy StateT then possibly switching to strict
is bad.
  * Might not work on older haskelines. I didn't check that they have
proper instances for strict StateT.

But really, this should be harmless and lazy StateT is usually not what
people want due to building up thunks.

Jason

On Sun, Oct 28, 2012 at 3:39 AM, Edwin Brady <edwin.br...@gmail.com> wrote:
> Hi Jason,
> That's great! If you can send me a pull request I'll check it works on
> Mac/Linux and apply it if so. Would be nice to have everything up to date.

> Thanks.
> Edwin.

> On 28 Oct 2012, at 01:40, Jason Dagit <dag...@gmail.com> wrote:

> > I started looking at what it would take to build Idris with the latest
> release of Haskeline.

> > It looks like the latest version very explicitly prefers the strict
> version of StateT, as you can see from the import list:
> http://hackage.haskell.org/packages/archive/haskeline/latest/doc/html...

> > import Control.Monad.Trans.State.Strict
> > instance MonadException m => MonadException (StateT s m) where
> >     controlIO f = StateT $ \s -> controlIO $ \(RunIO run) -> let
> >                     run' = RunIO (fmap (StateT . const) . run . flip
> runStateT s)
> >                     in fmap (flip runStateT s)
> >  $ f run'

> > Idris on the other hand, uses StateT from Control.Monad.State:
> http://hackage.haskell.org/packages/archive/mtl/latest/doc/html/src/C...
> > module Control.Monad.State (
> >   module Control.Monad.State.Lazy
> >   ) where

> > Which, as you can see, is a re-export of the lazy StateT transformer. I
> changed just the imports in Idris to use strict StateT and I was able to
> build against the latest Haskeline. I'm on windows so I ran into other
> build problems (I need gmp installed), but the basic idris interpreter can
> be built and the standard libs can be built as well. I can send a pull
> request on github if you're interested. I haven't tested my changes against
> older haskelines.

> > Jason


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.