Colors in lhs2TeX

Posted on 2018-06-21 by Oleg Grenrus notes

An example of colorful lhs2TeX file. See the source at 1, and the result PDF at

module ColorsInLhs2TeX where

newtype Foo = MkFoo Int

plusFoo :: Foo -> Foo -> Int
plusFoo (MkFoo n) (MkFoo m) = n + m

  1. It’s named tex to trick Pandoc in my blog setup↩︎

Site proudly generated by Hakyll