Re: [Haskell-cafe] Problems with code blocks in the description field in a .cabal file

2013-02-04 Thread Josef Svenningsson
On Mon, Feb 4, 2013 at 5:10 PM, Ryan Yates wrote: > Hi Josef, > > Sorry, I misunderstood the intent. From what I can tell this is a > Cabal deficiency. The text from the description field first passes through > the `tokeniseLine` function from here: > https://github.com/haskell/cabal/blob/cabal

Re: [Haskell-cafe] Problems with code blocks in the description field in a .cabal file

2013-02-04 Thread Ryan Yates
Hi Josef, Sorry, I misunderstood the intent. From what I can tell this is a Cabal deficiency. The text from the description field first passes through the `tokeniseLine` function from here: https://github.com/haskell/cabal/blob/cabal-1.16/Cabal/Distribution/ParseUtils.hs#L428which seems to have

Re: [Haskell-cafe] Problems with code blocks in the description field in a .cabal file

2013-02-04 Thread Josef Svenningsson
Hi Ryan, As far as I can tell I'm following the Haddock formatting just fine. I'm using bird tracks for my code block and according to the Haddock manual those code blocks are interpreted literally without any additional markup. To me that suggests that I should be able to write just about anythi

Re: [Haskell-cafe] Problems with code blocks in the description field in a .cabal file

2013-02-04 Thread Josef Svenningsson
On Mon, Feb 4, 2013 at 1:26 PM, Mateusz Kowalczyk wrote: > I don't understand why you're putting it in your .cabal file. Isn't > something like 3.8.5 over at [1] what you're trying to achieve? > > Right, I probably should have mentioned that the reason I put it in the .cabal file is that the cabal

Re: [Haskell-cafe] Problems with code blocks in the description field in a .cabal file

2013-02-04 Thread Ryan Yates
Hi Josef, You should be fine if you follow Haddock formatting. For example: http://hackage.haskell.org/package/lens Is from the cabal file: http://hackage.haskell.org/packages/archive/lens/3.8.5/lens.cabal Ryan On Mon, Feb 4, 2013 at 7:30 AM, Josef Svenningsson < josef.svennings...@gmail.c

Re: [Haskell-cafe] Problems with code blocks in the description field in a .cabal file

2013-02-04 Thread Mateusz Kowalczyk
I don't understand why you're putting it in your .cabal file. Isn't something like 3.8.5 over at [1] what you're trying to achieve? ... I had a look at a package ([2]) that I know uses a multi-line code block example. Here's what I found in its cabal file: An example: . > runShpider $

[Haskell-cafe] Problems with code blocks in the description field in a .cabal file

2013-02-04 Thread Josef Svenningsson
Hi, I'm putting together a cabal package and I'd like to have some code examples in my description file. In particular I would like to have a code block containing markdown containing a code block of Haskell, like this: > ~~~{ .haskell } > module Main where > > main = putStrLn "Hello World!" > ~~