Skip to content

Commit

Permalink
Update project Packages to V2
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman committed Nov 29, 2023
1 parent 8cd798c commit 5409d9e
Show file tree
Hide file tree
Showing 29 changed files with 47 additions and 75 deletions.
2 changes: 1 addition & 1 deletion examples/demo/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
2 changes: 1 addition & 1 deletion examples/midsquare/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
2 changes: 1 addition & 1 deletion examples/milestone/Bank/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package := defaultPackage {name := "bank"};
3 changes: 1 addition & 2 deletions examples/milestone/Collatz/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Package;

import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
3 changes: 1 addition & 2 deletions examples/milestone/Fibonacci/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Package;

import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
3 changes: 1 addition & 2 deletions examples/milestone/Hanoi/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Package;

import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
3 changes: 1 addition & 2 deletions examples/milestone/HelloWorld/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Package;

import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
3 changes: 1 addition & 2 deletions examples/milestone/PascalsTriangle/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Package;

import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
3 changes: 1 addition & 2 deletions examples/milestone/TicTacToe/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Package;

import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
2 changes: 1 addition & 1 deletion examples/milestone/Tutorial/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
2 changes: 1 addition & 1 deletion tests/Compilation/positive/test072/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package := defaultPackage {name := "monads"};
2 changes: 1 addition & 1 deletion tests/Internal/positive/Dependencies/Dep1/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage {name := "dep1"; dependencies := []};
2 changes: 1 addition & 1 deletion tests/Internal/positive/Dependencies/Dep2/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage {name := "dep2"; dependencies := []};
2 changes: 1 addition & 1 deletion tests/negative/NoDependencies/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package := defaultPackage {dependencies := []};
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Package;

import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package := defaultPackage {name := "abc"; version := mkVersion 0 0 1 ; dependencies := [ github "org" "repo" "ref1" ; github "org" "repo" "ref2" ]};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Package;

import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;

abc : Nat := 1;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Package;

import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Nat := 1;
2 changes: 1 addition & 1 deletion tests/positive/Dependencies/.libs/Extra/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
2 changes: 1 addition & 1 deletion tests/positive/Dependencies/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
2 changes: 1 addition & 1 deletion tests/positive/FancyPaths/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage
Expand Down
2 changes: 1 addition & 1 deletion tests/positive/FancyPaths/home/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package := defaultPackage {dependencies := []};
2 changes: 1 addition & 1 deletion tests/positive/FancyPaths/other dep/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package := defaultPackage {dependencies := []};
2 changes: 1 addition & 1 deletion tests/positive/FancyPaths/path with spaces/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package := defaultPackage {dependencies := []};
2 changes: 1 addition & 1 deletion tests/positive/MarkdownImport/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package :=
defaultPackage {name := "MarkdownImport"};
2 changes: 1 addition & 1 deletion tests/positive/NoDependencies/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package := defaultPackage {dependencies := []};
2 changes: 1 addition & 1 deletion tests/positive/StdlibList/Package.juvix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Package;

import PackageDescription.V1 open;
import PackageDescription.V2 open;

package : Package := defaultPackage {dependencies := []};
57 changes: 19 additions & 38 deletions tests/smoke/Commands/compile-dependencies-package-juvix.smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -100,8 +99,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -170,8 +168,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -217,8 +214,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -279,8 +275,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand All @@ -304,8 +299,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -420,8 +414,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -515,8 +508,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -548,8 +540,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -623,8 +614,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -661,8 +651,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -737,8 +726,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -775,8 +763,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -826,8 +813,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -873,8 +859,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -920,8 +905,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -989,8 +973,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -1042,8 +1025,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down Expand Up @@ -1107,8 +1089,7 @@ tests:
-- juvix-package-version:1
module Package;
import Stdlib.Prelude open;
import PackageDescription.V1 open;
import PackageDescription.V2 open;
package : Package :=
defaultPackage
Expand Down
Loading

0 comments on commit 5409d9e

Please sign in to comment.