The first version has bar True and False all at the same indentation level.
As such they are seen as standalone expressions, rather than being nested
under the one introduced by bar.
See http://en.wikibooks.org/wiki/Haskell/Indentation
On Thu, Oct 3, 2013 at 8:31 PM, Corentin Dupont
Thanks for the reference, but GHC already invokes the CPP.
I think I am going to have to invoke a load of the module with ghc flags
set to keep the output of the CPP phase, and then re-invoke it on that
output to get the tokens.
My question is more whether this CPP output can be kept in the GHC
I think the normal motivation for cucumber syntax is that it is a way to
communicate requirements with non-technical people.
On Tue, Sep 10, 2013 at 11:48 AM, John Wiegley jo...@fpcomplete.com wrote:
Niklas Hambüchen m...@nh2.me writes:
Code written in cucumber syntax is concise and easy
Hi Cafe
I have just discovered that GHC.getTokenStream fails if it is used on a
module with CPP directives in it.
This is reported in http://ghc.haskell.org/trac/ghc/ticket/8265
Is there an easy way to get access to the pre-processed source, without
having to explicitly write it to an output
Is this backward compatible with older versions of Cabal? I am considering
whether to migrate HaRe to use this, I would prefer not to have it then
fail to work on older systems that are constrained not to be able to update
Cabal.
Alan
On Fri, Sep 6, 2013 at 7:29 AM, Kazu Yamamoto k...@iij.ad.jp
Ok, thanks.
On Fri, Sep 6, 2013 at 9:52 AM, Kazu Yamamoto k...@iij.ad.jp wrote:
Alan,
Is this backward compatible with older versions of Cabal? I am
considering
whether to migrate HaRe to use this, I would prefer not to have it then
fail to work on older systems that are constrained
I am please to announce an alpha release of the Haskell Refactorer making
use of the GHC API.
It is a work in progress, but currently supports the following refactorings
iftocase
Convert an if expression to a case expression
dupdef
Duplicate a definition
This is not using haskell-src-exts, but the Haskell Refactorer has a
structure to keep a parallel tree of tokens indexed by SrcSpan, which
attempts to allocate comments to the appropriate point.
See
https://github.com/alanz/HaRe/blob/master/src/Language/Haskell/Refact/Utils/TokenUtils.hs.
It does
If you use the ParsedSource representation,
http://www.haskell.org/ghc/docs/latest/html/libraries/ghc-7.6.3/HsSyn.html#t:HsModule,
the LIE entry still has a RdrName which is represented as
(IEVar
(Qual {ModuleName: L} {OccName: find})))])
On Thu, Jul 4, 2013 at 7:11 PM, Pasqualino
On Fri, Jun 21, 2013 at 9:05 AM, AlanKim Zimmerman alan.z...@gmail.comwrote:
I have a feeling the work-in-progress Haskell Refactorer using the GHC API
may be able to provide this information through its library interface.
When I have some time over the weekend I will have a look.
Alan
I have a feeling the work-in-progress Haskell Refactorer using the GHC API
may be able to provide this information through its library interface.
When I have some time over the weekend I will have a look.
Alan
On Fri, Jun 21, 2013 at 8:44 AM, Michael Sloan mgsl...@gmail.com wrote:
Roman:
This looks like quite a good series https://www.youtube.com/user/jekor
On Mon, Jun 17, 2013 at 8:30 PM, Vo Minh Thu not...@gmail.com wrote:
Certainly less entertaining but depending on your public, this one with FP
Complete's Aaron Contorer can be valuable:
Roman Cheplyaka has written a tool called HasFix for updating source based
on new versions of libraries.
The presentation on it is here http://ro-che.info/docs/ and the code is at
https://github.com/feuerbach/hasfix
Perhaps it could be pressed into use for automatic update of historical
code?
Have you looked at http://frictionfreedemocracy.org/
They are using https://github.com/agocorona/Workflow amongst other things
to define election work flows.
Alan
On Jun 5, 2013 11:25 PM, Corentin Dupont corentin.dup...@gmail.com
wrote:
Hi haskellers!
I am trying to make a DSL able to
14 matches
Mail list logo