This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from garyb/types
Add sum for EJson types
- Loading branch information
Showing
7 changed files
with
83 additions
and
29 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
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
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,34 @@ | ||
module Data.Json.Extended.Type where | ||
|
||
import Prelude | ||
|
||
data EJsonType | ||
= Null | ||
| String | ||
| Boolean | ||
| Integer | ||
| Decimal | ||
| Timestamp | ||
| Date | ||
| Time | ||
| Interval | ||
| ObjectId | ||
| Array | ||
| Map | ||
|
||
derive instance eqEJsonType ∷ Eq EJsonType | ||
derive instance ordEJsonType ∷ Ord EJsonType | ||
|
||
instance showEJsonType ∷ Show EJsonType where | ||
show Null = "Null" | ||
show String = "String" | ||
show Boolean = "Boolean" | ||
show Integer = "Integer" | ||
show Decimal = "Decimal" | ||
show Timestamp = "Timestamp" | ||
show Date = "Date" | ||
show Time = "Time" | ||
show Interval = "Interval" | ||
show ObjectId = "ObjectId" | ||
show Array = "Array" | ||
show Map = "Map" |