[GHC] #4836: literate markdown not handled correctly by unlit

GHC ghc-devs at haskell.org
Sat Jun 7 10:21:09 UTC 2014


#4836: literate markdown not handled correctly by unlit
----------------------------------------------+----------------------------
        Reporter:  guest                      |            Owner:
            Type:  bug                        |           Status:  new
        Priority:  low                        |        Milestone:  7.6.2
       Component:  Compiler                   |          Version:  7.0.1
      Resolution:                             |         Keywords:
Operating System:  Unknown/Multiple           |     Architecture:
 Type of failure:  GHC rejects valid program  |  Unknown/Multiple
       Test Case:                             |       Difficulty:  Unknown
        Blocking:                             |       Blocked By:
                                              |  Related Tickets:  #7120
----------------------------------------------+----------------------------

Comment (by dominic):

 I have probably misunderstood but I don't think this solves the problem. I
 have cherry-picked your commits. For the code example above


 {{{
 ### Ok so lets try this again.

 ### A page that loads and compiles:

 > myfact 0 = 1
 > myfact n = n * n-1

 Lets see if it works!
 }}}

 saved as a .lhs file I get

 {{{
 ~/ghc $ ./inplace/bin/ghc-stage2 TheLitTest.lhs

 TheLitTest.lhs:1:2: lexical error at character '#'
 }}}

 Saving it as a .md file mutatis mutandis


 {{{
 ### Ok so lets try this again.

 ### A page that loads and compiles:

 ```
 module Main ( main ) where

 myfact 0 = 1
 myfact n = n * n-1

 main = undefined
 ```

 Lets see if it works!
 }}}

 it compiles successfully but then other tools e.g. BlogLiterately don't
 work. They rely on the bird tracks. So I think this may solve a problem
 but it doesn't solve this problem.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/4836#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list