module CS.JsonDotNet.Internal.Types whereimport Data.Aesonimport Data.Textdata FieldType = FInteger | FNumber | FString | FBool | FDay | FUTCTime | FEnum Text [Value] | FObject Text [(Text, FieldType)] | FList FieldType | FNullable FieldType | FRefObject Text | FRefEnum Text | FRefPrim Text FieldType deriving ShowisFEnum :: FieldType -> BoolisFEnum (FEnum _ _) = TrueisFEnum _ = FalseisFPrim :: FieldType -> BoolisFPrim FString = TrueisFPrim FInteger = TrueisFPrim FNumber = TrueisFPrim FBool = TrueisFPrim FDay = TrueisFPrim FUTCTime = TrueisFPrim _ = FalseisFObj :: FieldType -> BoolisFObj (FObject _ _) = TrueisFObj _ = Falsedata CCate = CVal | CRef | CSt deriving Shownullable :: FieldType -> CCatenullable FInteger = CValnullable FNumber = CValnullable FString = CRefnullable FBool = CValnullable FDay = CValnullable FUTCTime = CValnullable (FEnum _ _) = CStnullable (FObject _ _) = CStnullable (FList _) = CRefnullable (FNullable _) = CRefnullable (FRefObject _) = CValnullable (FRefEnum _) = CValnullable (FRefPrim _ t) = nullable tdata ConverterType = NoConv | DayConv | EnumConv | ItemConv ConverterType deriving Show