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