Skip to content

Commit dfe2350

Browse files
committed
add json support
1 parent ff94d33 commit dfe2350

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Language/Haskell/Liquid/UX/ACSS.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ import qualified Data.HashMap.Strict as M
2323
import Data.List (find, isPrefixOf, findIndex, elemIndices, intercalate)
2424
import Data.Char (isSpace)
2525
import Text.Printf
26-
-- import Text.PrettyPrint.HughesPJ (Doc)
2726
import Language.Haskell.Liquid.GHC.Misc
2827
import Language.Haskell.Liquid.Types.Errors (panic, impossible)
29-
-- import Language.Haskell.Liquid.Types (AnnInfo)
3028

3129
data AnnMap = Ann
3230
{ types :: M.HashMap Loc (String, String) -- ^ Loc -> (Var, Type)

src/Language/Haskell/Liquid/UX/Annotate.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ instance ToJSON ACSS.AnnMap where
448448
where
449449
toJ (sp, (x,t)) = object [ "start" .= toJSON (srcSpanStartLoc sp)
450450
, "stop" .= toJSON (srcSpanEndLoc sp)
451-
, "var" .= toJSON x
452-
, "type" .= toJSON t
451+
, "ident" .= toJSON x
452+
, "ann" .= toJSON t
453453
]
454454

455455
annErrors :: ACSS.AnnMap -> AnnErrors

0 commit comments

Comments
 (0)