Skip to content

Instantly share code, notes, and snippets.

@disnet
Created February 17, 2013 21:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save disnet/4973724 to your computer and use it in GitHub Desktop.
Save disnet/4973724 to your computer and use it in GitHub Desktop.
sed - convert literate haskell to plain haskell
sed '
s/^>//
t
s/^ *$//
t
s/^/-- /
' in.lhs > out.hs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment