on master help sign in
Upgrade Compile function to take text, not strings
commit56980542129101b04ad37dd6590a1f35ee3f5023 authorEvan Czaplicki <evancz@users.noreply.github.com> dateWed 7 Dec 2016, 15:16 (10 years ago) parent2203dd6
1 file changed+6−1
src/Compile.hs+6−1
src/Compile.hs+6−1
@@ -1,6 +1,8 @@
11{-# OPTIONS_GHC -Wall -fno-warn-unused-do-bind #-}
22module Compile (compile) where
33
4+import Data.Text (Text)
5+
46import qualified AST.Expression.Canonical as Can
57import qualified AST.Module as Module
68import qualified AST.Module.Name as ModuleName
@@ -18,6 +20,9 @@ import qualified Type.Inference as TI
1820
1921
2022
23+-- COMPILE
24+
25+
2126type Result =
2227 Result.Result (Result.One RenderType.Localizer) Warning.Warning Error.Error
2328
@@ -26,7 +31,7 @@ compile
2631 :: Package.Name
2732 -> [ModuleName.Canonical]
2833 -> Module.Interfaces
29− -> String
34+ -> Text
3035 -> Result Module.Optimized
3136compile packageName canonicalImports interfaces source =
3237 do