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