Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Literate Haskell in Markdown but not Bird style
      (Brent Yorgey)
   2. Re:  Literate Haskell in Markdown but not Bird style
      (Dimitri DeFigueiredo)
   3. Re:  Literate Haskell in Markdown but not Bird style
      (Brent Yorgey)
   4. Re:  Literate Haskell in Markdown but not Bird style
      (Dimitri DeFigueiredo)
   5.  About ! before a type signature (Song Zhang)


----------------------------------------------------------------------

Message: 1
Date: Thu, 5 Jun 2014 12:30:14 -0400
From: Brent Yorgey <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Literate Haskell in Markdown but not
        Bird style
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

On Thu, Jun 05, 2014 at 12:53:05AM -0600, Dimitri DeFigueiredo wrote:
> Thanks. I wanted to use the fenced version like so.
> 
> ```haskell
> myFunction :: Int -> String
> -- some code goes here
> ```

OK.  Unfortunately it is not possible to get GHC to recognize code in
that format without some preprocessing.

> I find that typing with the Bird style, I get lots of '>' left behind
> at the end of lines causing syntax problems before I compile. It also
> makes it harder for me to reformat the code. For example, 'unindent
> block' no longer works on my editor.

Sounds like the real issue is that you need better editor support.
What editor are you using?  I am just curious, I am not going to
suggest that you change editors. =)

-Brent

> Em 04/06/14 19:45, Brent Yorgey escreveu:
> >On Wed, Jun 04, 2014 at 04:58:27PM -0600, Dimitri DeFigueiredo wrote:
> >>Hi All,
> >>
> >>Is there a way to use literate haskell with GHC using Markdown but
> >>*not* using the Bird style for the code?
> >>It seems either one uses Bird style or has to put latex style
> >>\begin{code} markup (which markdown doesn't hide)
> >Those are the only two styles which GHC accepts.
> >
> >>In other words, is there a way to mark up the code in Markdown in a
> >>way that GHC understands without having to preprocess the file? I
> >>just wanted to write a .lhs file in markdown like I write a .hs file
> >>today.
> >If you are willing/able to use pandoc, it implements a special version
> >of Markdown for .lhs files which understands Bird tracks.  See
> >
> >   http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown
> >
> >-Brent
> >_______________________________________________
> >Beginners mailing list
> >[email protected]
> >http://www.haskell.org/mailman/listinfo/beginners
> 
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners


------------------------------

Message: 2
Date: Thu, 05 Jun 2014 10:44:05 -0600
From: Dimitri DeFigueiredo <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Literate Haskell in Markdown but not
        Bird style
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I'm using Sublime Text. I do like it a lot! I disagree that what I need 
is a better editor. What is the more popular to annotate code today: 
Github Markdown or Latex? The source file of a latex document is not 
amenable to be read as you are coding, but Markdown is. So, it helps 
make the code cleaner. ;-)

Dimitri

Em 05/06/14 10:30, Brent Yorgey escreveu:
> On Thu, Jun 05, 2014 at 12:53:05AM -0600, Dimitri DeFigueiredo wrote:
>> Thanks. I wanted to use the fenced version like so.
>>
>> ```haskell
>> myFunction :: Int -> String
>> -- some code goes here
>> ```
> OK.  Unfortunately it is not possible to get GHC to recognize code in
> that format without some preprocessing.
>
>> I find that typing with the Bird style, I get lots of '>' left behind
>> at the end of lines causing syntax problems before I compile. It also
>> makes it harder for me to reformat the code. For example, 'unindent
>> block' no longer works on my editor.
> Sounds like the real issue is that you need better editor support.
> What editor are you using?  I am just curious, I am not going to
> suggest that you change editors. =)
>
> -Brent
>
>> Em 04/06/14 19:45, Brent Yorgey escreveu:
>>> On Wed, Jun 04, 2014 at 04:58:27PM -0600, Dimitri DeFigueiredo wrote:
>>>> Hi All,
>>>>
>>>> Is there a way to use literate haskell with GHC using Markdown but
>>>> *not* using the Bird style for the code?
>>>> It seems either one uses Bird style or has to put latex style
>>>> \begin{code} markup (which markdown doesn't hide)
>>> Those are the only two styles which GHC accepts.
>>>
>>>> In other words, is there a way to mark up the code in Markdown in a
>>>> way that GHC understands without having to preprocess the file? I
>>>> just wanted to write a .lhs file in markdown like I write a .hs file
>>>> today.
>>> If you are willing/able to use pandoc, it implements a special version
>>> of Markdown for .lhs files which understands Bird tracks.  See
>>>
>>>    http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown
>>>
>>> -Brent
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners



------------------------------

Message: 3
Date: Thu, 5 Jun 2014 13:15:36 -0400
From: Brent Yorgey <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Literate Haskell in Markdown but not
        Bird style
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

I didn't say you need a better editor!  I said you need better
*support* from your editor for writing literate Haskell code.  I don't
know much about Sublime Text but you might find this useful:

https://bitbucket.org/wrossmck/literate-haskell-bird-style

Anyway, I agree Markdown is better for annotating your code, unless
you are writing a paper about it.

-Brent

On Thu, Jun 05, 2014 at 10:44:05AM -0600, Dimitri DeFigueiredo wrote:
> I'm using Sublime Text. I do like it a lot! I disagree that what I
> need is a better editor. What is the more popular to annotate code
> today: Github Markdown or Latex? The source file of a latex document
> is not amenable to be read as you are coding, but Markdown is. So, it
> helps make the code cleaner. ;-)
> 
> Dimitri
> 
> Em 05/06/14 10:30, Brent Yorgey escreveu:
> >On Thu, Jun 05, 2014 at 12:53:05AM -0600, Dimitri DeFigueiredo wrote:
> >>Thanks. I wanted to use the fenced version like so.
> >>
> >>```haskell
> >>myFunction :: Int -> String
> >>-- some code goes here
> >>```
> >OK.  Unfortunately it is not possible to get GHC to recognize code in
> >that format without some preprocessing.
> >
> >>I find that typing with the Bird style, I get lots of '>' left behind
> >>at the end of lines causing syntax problems before I compile. It also
> >>makes it harder for me to reformat the code. For example, 'unindent
> >>block' no longer works on my editor.
> >Sounds like the real issue is that you need better editor support.
> >What editor are you using?  I am just curious, I am not going to
> >suggest that you change editors. =)
> >
> >-Brent
> >
> >>Em 04/06/14 19:45, Brent Yorgey escreveu:
> >>>On Wed, Jun 04, 2014 at 04:58:27PM -0600, Dimitri DeFigueiredo wrote:
> >>>>Hi All,
> >>>>
> >>>>Is there a way to use literate haskell with GHC using Markdown but
> >>>>*not* using the Bird style for the code?
> >>>>It seems either one uses Bird style or has to put latex style
> >>>>\begin{code} markup (which markdown doesn't hide)
> >>>Those are the only two styles which GHC accepts.
> >>>
> >>>>In other words, is there a way to mark up the code in Markdown in a
> >>>>way that GHC understands without having to preprocess the file? I
> >>>>just wanted to write a .lhs file in markdown like I write a .hs file
> >>>>today.
> >>>If you are willing/able to use pandoc, it implements a special version
> >>>of Markdown for .lhs files which understands Bird tracks.  See
> >>>
> >>>   http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown
> >>>
> >>>-Brent
> >>>_______________________________________________
> >>>Beginners mailing list
> >>>[email protected]
> >>>http://www.haskell.org/mailman/listinfo/beginners
> >>_______________________________________________
> >>Beginners mailing list
> >>[email protected]
> >>http://www.haskell.org/mailman/listinfo/beginners
> >_______________________________________________
> >Beginners mailing list
> >[email protected]
> >http://www.haskell.org/mailman/listinfo/beginners
> 
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners


------------------------------

Message: 4
Date: Thu, 05 Jun 2014 22:00:32 -0600
From: Dimitri DeFigueiredo <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Literate Haskell in Markdown but not
        Bird style
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Thanks for the link. :-)

Dimitri


Em 05/06/14 11:15, Brent Yorgey escreveu:
> I didn't say you need a better editor!  I said you need better
> *support* from your editor for writing literate Haskell code.  I don't
> know much about Sublime Text but you might find this useful:
>
> https://bitbucket.org/wrossmck/literate-haskell-bird-style
>
> Anyway, I agree Markdown is better for annotating your code, unless
> you are writing a paper about it.
>
> -Brent
>
> On Thu, Jun 05, 2014 at 10:44:05AM -0600, Dimitri DeFigueiredo wrote:
>> I'm using Sublime Text. I do like it a lot! I disagree that what I
>> need is a better editor. What is the more popular to annotate code
>> today: Github Markdown or Latex? The source file of a latex document
>> is not amenable to be read as you are coding, but Markdown is. So, it
>> helps make the code cleaner. ;-)
>>
>> Dimitri
>>
>> Em 05/06/14 10:30, Brent Yorgey escreveu:
>>> On Thu, Jun 05, 2014 at 12:53:05AM -0600, Dimitri DeFigueiredo wrote:
>>>> Thanks. I wanted to use the fenced version like so.
>>>>
>>>> ```haskell
>>>> myFunction :: Int -> String
>>>> -- some code goes here
>>>> ```
>>> OK.  Unfortunately it is not possible to get GHC to recognize code in
>>> that format without some preprocessing.
>>>
>>>> I find that typing with the Bird style, I get lots of '>' left behind
>>>> at the end of lines causing syntax problems before I compile. It also
>>>> makes it harder for me to reformat the code. For example, 'unindent
>>>> block' no longer works on my editor.
>>> Sounds like the real issue is that you need better editor support.
>>> What editor are you using?  I am just curious, I am not going to
>>> suggest that you change editors. =)
>>>
>>> -Brent
>>>
>>>> Em 04/06/14 19:45, Brent Yorgey escreveu:
>>>>> On Wed, Jun 04, 2014 at 04:58:27PM -0600, Dimitri DeFigueiredo wrote:
>>>>>> Hi All,
>>>>>>
>>>>>> Is there a way to use literate haskell with GHC using Markdown but
>>>>>> *not* using the Bird style for the code?
>>>>>> It seems either one uses Bird style or has to put latex style
>>>>>> \begin{code} markup (which markdown doesn't hide)
>>>>> Those are the only two styles which GHC accepts.
>>>>>
>>>>>> In other words, is there a way to mark up the code in Markdown in a
>>>>>> way that GHC understands without having to preprocess the file? I
>>>>>> just wanted to write a .lhs file in markdown like I write a .hs file
>>>>>> today.
>>>>> If you are willing/able to use pandoc, it implements a special version
>>>>> of Markdown for .lhs files which understands Bird tracks.  See
>>>>>
>>>>>    http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown
>>>>>
>>>>> -Brent
>>>>> _______________________________________________
>>>>> Beginners mailing list
>>>>> [email protected]
>>>>> http://www.haskell.org/mailman/listinfo/beginners
>>>> _______________________________________________
>>>> Beginners mailing list
>>>> [email protected]
>>>> http://www.haskell.org/mailman/listinfo/beginners
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners



------------------------------

Message: 5
Date: Fri, 6 Jun 2014 19:23:06 +0800
From: Song Zhang <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] About ! before a type signature
Message-ID:
        <cacgmeomk8w2jubolwbp_xoryretzuvy10vhx+z31eqd1tt5...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

This is about syntax of Haskell.
I am reading the source code of Yampa. I find that a definition like the
following

data SF' a b where
    SFArr   :: !(DTime -> a -> Transition a b) -> !(FunDesc a b) -> SF' a b


in Yampa.hs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20140606/ad03af0c/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 72, Issue 4
****************************************

Reply via email to