-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
338 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | ||
{-# LANGUAGE StandaloneDeriving #-} | ||
{-# LANGUAGE DeriveDataTypeable #-} | ||
{-# LANGUAGE FlexibleContexts #-} | ||
module Eta.BasicTypes.JavaAnnotation | ||
( JavaAnnotation(..) | ||
, AnnExpr(..) | ||
, LAnnExpr ) | ||
where | ||
|
||
import Data.Data | ||
|
||
import Eta.BasicTypes.SrcLoc | ||
import Eta.Utils.FastString | ||
|
||
-- This is guaranteed to be an AnnRecord | ||
newtype JavaAnnotation id = JavaAnnotation { jaExpr :: LAnnExpr id } | ||
deriving Data | ||
|
||
type LAnnExpr id = Located (AnnExpr id) | ||
|
||
data AnnExpr id = | ||
AnnRecord (Located id) [(LString, LAnnExpr id)] | ||
| AnnApply (Located id) (Maybe (LAnnExpr id)) | ||
| AnnCharacter Char | ||
| AnnString FastString | ||
| AnnInteger Integer | ||
| AnnRational Rational | ||
| AnnList [(LAnnExpr id)] | ||
deriving Data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.