Play

Check-in [4ebb2687f0]
Login
Overview
Comment:Add stubbed modules for upcomming PackageLoader feature which loads, parses and qualifies an entire package and its dependencies.
Timelines: family | ancestors | descendants | both | modules
Files: files | file ages | folders
SHA3-256: 4ebb2687f0d2ba11340fefe7a86f7a910f30031df3ffebd691168403f786ed14
User & Date: robin.hansen on 2021-02-12 08:40:25
Other Links: branch diff | manifest | tags
Context
2021-02-12
09:19
Merge new test script names from trunk. check-in: 4a3f3a82db user: robin.hansen tags: modules
08:40
Add stubbed modules for upcomming PackageLoader feature which loads, parses and qualifies an entire ... check-in: 4ebb2687f0 user: robin.hansen tags: modules
2021-02-11
12:56
Can now resolve external word references. check-in: 4ed17683cd user: robin.hansen tags: modules
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified elm.json from [72ea3d105b] to [0b26ef7325].

4
5
6
7
8
9
10

11
12
13
14
15
16
17
18
19
20
21
22
23
24

25
26
27
28
29

30
31
32
        "src"
    ],
    "elm-version": "0.19.1",
    "dependencies": {
        "direct": {
            "elm/core": "1.0.5",
            "elm/html": "1.0.0",

            "elm/parser": "1.1.0",
            "elm-community/dict-extra": "2.4.0",
            "elm-community/list-extra": "8.2.3",
            "elm-community/result-extra": "2.4.0"
        },
        "indirect": {
            "elm/json": "1.1.3",
            "elm/virtual-dom": "1.0.2"
        }
    },
    "test-dependencies": {
        "direct": {
            "elm-explorations/test": "1.2.2",
            "elm-community/string-extra": "4.0.1"

        },
        "indirect": {
            "elm/random": "1.0.0",
            "elm/time": "1.0.0",
            "elm/regex": "1.0.0"

        }
    }
}







>






<





<
|
>



<
|
>



4
5
6
7
8
9
10
11
12
13
14
15
16
17

18
19
20
21
22

23
24
25
26
27

28
29
30
31
32
        "src"
    ],
    "elm-version": "0.19.1",
    "dependencies": {
        "direct": {
            "elm/core": "1.0.5",
            "elm/html": "1.0.0",
            "elm/json": "1.1.3",
            "elm/parser": "1.1.0",
            "elm-community/dict-extra": "2.4.0",
            "elm-community/list-extra": "8.2.3",
            "elm-community/result-extra": "2.4.0"
        },
        "indirect": {

            "elm/virtual-dom": "1.0.2"
        }
    },
    "test-dependencies": {
        "direct": {

            "elm-community/string-extra": "4.0.1",
            "elm-explorations/test": "1.2.2"
        },
        "indirect": {
            "elm/random": "1.0.0",

            "elm/regex": "1.0.0",
            "elm/time": "1.0.0"
        }
    }
}

Added src/Play/Data/ModuleName.elm version [95823ff653].











>
>
>
>
>
1
2
3
4
5
module Play.Data.ModuleName exposing (ModuleName)


type ModuleName
    = ModuleName String

Added src/Play/Data/PackageMetadata.elm version [be30fcf924].

































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Play.Data.PackageMetadata exposing (PackageMetadata)

import Play.Data.ModuleName as ModuleName exposing (ModuleName)
import Play.Data.PackageName as PackageName exposing (PackageName)
import Play.Data.PackagePath as PackagePath exposing (PackagePath)
import Play.Data.SemanticVersion as SemanticVersion exposing (SemanticVersion)


type alias PackageMetadata =
    { name : PackageName
    , version : SemanticVersion
    , compatibleLanguageVersion : SemanticVersion
    , exposedModules : List ModuleName
    , dependencies : Dict String SemanticVersion
    , packagePaths : List PackagePath
    }

Added src/Play/Data/PackageName.elm version [f9a885d0a2].











>
>
>
>
>
1
2
3
4
5
module Play.Data.PackageName exposing (PackageName)


type PackageName
    = PackageName String String

Added src/Play/Data/PackagePath.elm version [88864ec89a].











>
>
>
>
>
1
2
3
4
5
module Play.Data.PackagePath exposing (PackagePath)


type PackagePath
    = PackagePath String

Added src/Play/Data/SemanticVersion.elm version [ee5d58bf40].











>
>
>
>
>
1
2
3
4
5
module Play.Data.SemanticVersion exposing (SemanticVersion)


type SemanticVersion
    = SemanticVersion Int Int Int

Added src/Play/PackageLoader.elm version [0c8dfd49f9].









































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Play.PackageLoader exposing (init)

import Json.Decode as Json


type Problem
    = InvalidPackageMetadata String String


type alias State =
    ()


type SideEffect
    = NoOp


init : String -> Json.Value -> Result Problem ( State, SideEffect )
init jsonFilePath json =
    Err <| InvalidPackageMetadata jsonFilePath "todo"