Play

Check-in [d20a4dc6a5]
Login
Overview
Comment:Fix compile error in Main.elm
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d20a4dc6a5f18faba97d93c6f9bec40dd996529df09db9dbb248f8cc61ca1c16
User & Date: robin.hansen on 2021-03-30 09:41:19
Other Links: manifest | tags
Context
2021-04-07
13:39
Add cli program to compile projects, run functions and initiate new projects. Leaf check-in: 9318fc4c3b user: robin.hansen tags: trunk
2021-03-30
09:41
Fix compile error in Main.elm check-in: d20a4dc6a5 user: robin.hansen tags: trunk
08:57
Merge basic module and package support. check-in: 97ad30bba8 user: robin.hansen tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified src/Main.elm from [fe49ef1d5b] to [3aebcaa4ec].

1
2

3
4
5
6
7
8
9
..
60
61
62
63
64
65
66

67
68
69
70
71
72
73
port module Main exposing (main)


import Platform exposing (Program)
import Play.Codegen as Codegen
import Play.Parser as Parser
import Play.Parser.Problem as ParserProblem
import Play.Qualifier as Qualifier
import Play.Qualifier.Problem as QualifierProblem
import Play.TypeChecker as TypeChecker
................................................................................
        Ok ast ->
            let
                qualifierResult =
                    Qualifier.run
                        { packageName = ""
                        , modulePath = ""
                        , ast = ast

                        }
            in
            case qualifierResult of
                Err qualifierErrors ->
                    formatErrors (QualifierProblem.toString sourceCode) qualifierErrors

                Ok qualifiedAst ->


>







 







>







1
2
3
4
5
6
7
8
9
10
..
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
port module Main exposing (main)

import Dict
import Platform exposing (Program)
import Play.Codegen as Codegen
import Play.Parser as Parser
import Play.Parser.Problem as ParserProblem
import Play.Qualifier as Qualifier
import Play.Qualifier.Problem as QualifierProblem
import Play.TypeChecker as TypeChecker
................................................................................
        Ok ast ->
            let
                qualifierResult =
                    Qualifier.run
                        { packageName = ""
                        , modulePath = ""
                        , ast = ast
                        , externalModules = Dict.empty
                        }
            in
            case qualifierResult of
                Err qualifierErrors ->
                    formatErrors (QualifierProblem.toString sourceCode) qualifierErrors

                Ok qualifiedAst ->