git.iko.soy/rowtype-yoga/purescript-native
on fca3655 help sign in
18 lines 364 B history raw
1{-# LANGUAGE TemplateHaskell #-}
3-- |
4-- Defines the types of source code comments
5--
6module Language.PureScript.Comments where
8import Prelude.Compat
9import Data.Text (Text)
11import Data.Aeson.TH
13data Comment
14 = LineComment Text
15 | BlockComment Text
16 deriving (Show, Eq, Ord)
18$(deriveJSON (defaultOptions { sumEncoding = ObjectWithSingleField }) ''Comment)