git.iko.soy/rowtype-yoga/purescript-native
on ae8cfaa help sign in
29 lines 795 B history raw
1-----------------------------------------------------------------------------
2--
3-- Module : Language.PureScript.Parser.Comments
4-- Copyright : (c) Phil Freeman 2015
5-- License : MIT
6--
7-- Maintainer : Phil Freeman <paf31@cantab.net>
8-- Stability : experimental
9-- Portability :
10--
11-- |
12-- Defines the types of source code comments
13--
14-----------------------------------------------------------------------------
16{-# LANGUAGE DeriveDataTypeable #-}
17{-# LANGUAGE TemplateHaskell #-}
19module Language.PureScript.Comments where
21import Data.Aeson.TH
22import qualified Data.Data as D
24data Comment
25 = LineComment String
26 | BlockComment String
27 deriving (Show, Read, Eq, Ord, D.Data, D.Typeable)
29$(deriveJSON (defaultOptions { sumEncoding = ObjectWithSingleField }) ''Comment)