Added pragmas to suppress LSP warnings; removed a random line that was
added by the LSP
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
{-# LANGUAGE InstanceSigs #-}
|
||||
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
|
||||
|
||||
{-# HLINT ignore "Use lambda-case" #-}
|
||||
|
||||
module MdToHTML where
|
||||
|
||||
@@ -40,7 +42,6 @@ data MdToken
|
||||
|
||||
-- Deriving Show for MdToken
|
||||
instance Show MdToken where
|
||||
show :: MdToken -> String
|
||||
show (Document tokens) = concatMap show tokens
|
||||
show (Header level token) = "<h" ++ show level ++ ">" ++ show token ++ "</h" ++ show level ++ ">"
|
||||
show (Para token) = "<p>" ++ show token ++ "</p>"
|
||||
|
Reference in New Issue
Block a user