-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Did some basic work on ElmApplication
- Loading branch information
1 parent
a1696a5
commit 3f33786
Showing
6 changed files
with
96 additions
and
63 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
morphir/src/org/finos/morphir/lang/elm/ElmApplicationDependencies.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.finos.morphir.lang.elm | ||
|
||
import kyo.Result | ||
import org.finos.morphir.api.SemVerString | ||
import metaconfig.* | ||
import metaconfig.generic.* | ||
import metaconfig.sconfig.* | ||
import org.finos.morphir.NonNegativeInt | ||
import org.finos.morphir.config.{ConfigCompanion, MorphirConfig} | ||
|
||
final case class ElmApplicationDependencies( | ||
direct: ElmDependencyMap, | ||
indirect: ElmDependencyMap | ||
) | ||
|
||
object ElmApplicationDependencies: | ||
val empty: ElmApplicationDependencies = ElmApplicationDependencies(ElmDependencyMap.empty, ElmDependencyMap.empty) | ||
val default: ElmApplicationDependencies = ElmApplicationDependencies.empty | ||
|
||
given Surface[ElmApplicationDependencies] = generic.deriveSurface | ||
given confDecoder: ConfDecoder[ElmApplicationDependencies] = | ||
generic.deriveDecoder[ElmApplicationDependencies](ElmApplicationDependencies.default).noTypos | ||
|
||
given confEncoder: ConfEncoder[ElmApplicationDependencies] = generic.deriveEncoder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
morphir/src/org/finos/morphir/lang/elm/elm.packagemanagement.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
package org.finos.morphir.lang.elm | ||
|
||
final case class ElmConfig( | ||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,4 +52,3 @@ object ElmPackageName extends Subtype[String]: | |
|
||
extension (self: ElmPackageName) | ||
def value: String = self | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters