git.iko.soy/typeable/xsd-isogen
on master help sign in
Use Scientific fom double and decimal (#16)
commitbb9fe0c3b4afb04aacad18d388e4e4e6d14312e3 authorYuras <shumovichy@gmail.com> dateTue 11 Feb 2020, 15:41 (7 years ago) parente5b0684
2 files changed+3−2
src/BuiltInTypes.hs+2−2 src/Main.hs+1
src/BuiltInTypes.hs+2−2
@@ -20,7 +20,7 @@ builtInTypes = Map.fromList . map qualify $
2020 , ("date", "Date")
2121 , ("dateTime", "Text")
2222 , ("dateTimeStamp", "Text")
23− , ("decimal", "Double")
23+ , ("decimal", "Scientific")
2424 , ("integer", "Integer")
2525 , ("long", "Integer")
2626 , ("int", "Integer")
@@ -34,7 +34,7 @@ builtInTypes = Map.fromList . map qualify $
3434 , ("nonPositiveInteger", "Integer")
3535 , ("negativeInteger", "Integer")
3636 , ("float", "Float")
37− , ("double", "Double")
37+ , ("double", "Scientific")
3838 , ("gDay", "Day")
3939 , ("gMonth", "Text")
4040 , ("gMonthDay", "Text")
src/Main.hs+1
@@ -389,6 +389,7 @@ genHeader opts = do
389389 [ "module " <> oModule opts <> " where"
390390 , ""
391391 , "import Control.DeepSeq"
392+ , "import Data.Scientific"
392393 , "import Data.THGen.XML"
393394 ]
394395 writeCode imports