packages feed

orchid-0.0.6: src/Network/Orchid/Format/Haskell.hs

module Network.Orchid.Format.Haskell (fHaskell) where

import Text.Document.Document
import Network.Orchid.Core.Backend
import Network.Orchid.Core.Format
import Network.Protocol.Uri

fHaskell = WikiFormat "hs" "text/plain" haskell

haskell :: Backend -> FilePath -> URI -> String -> IO Output
haskell backend _ _ src = return 
  $ TextOutput
  $ either show show
  $ fromWiki src