Skip to content

Commit

Permalink
Rename Prelude -> ContainersPrelude (#10)
Browse files Browse the repository at this point in the history
Calling the Prelude `ContainersPrelude` avoids naming conflicts with
users of this library
  • Loading branch information
paulcadman authored Dec 1, 2023
1 parent 300b163 commit 471fa23
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Prelude.juvix → ContainersPrelude.juvix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Prelude;
module ContainersPrelude;

import Juvix.Builtin.V1 open public;
import Stdlib.Data.String.Base open public;
Expand Down
2 changes: 1 addition & 1 deletion Data/BinaryTree.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Data.BinaryTree;

import Prelude open;
import ContainersPrelude open;

type BinaryTree (A : Type) :=
| leaf : BinaryTree A
Expand Down
2 changes: 1 addition & 1 deletion Data/Map.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Data.Map;

import Prelude open;
import ContainersPrelude open;

import Data.Set as Set;
open Set using {Set};
Expand Down
2 changes: 1 addition & 1 deletion Data/Queue/Base.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
--- performance.
module Data.Queue.Base;

import Prelude open;
import ContainersPrelude open;

--- A first-in-first-out data structure
type Queue (A : Type) := queue (List A) (List A);
Expand Down
2 changes: 1 addition & 1 deletion Data/Set/AVL.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
--- constructing, modifying, and querying AVL trees.
module Data.Set.AVL;

import Prelude open;
import ContainersPrelude open;
import Data.Tmp open;

import Data.Tree as Tree open using {Tree; Forest};
Expand Down
2 changes: 1 addition & 1 deletion Data/Tmp.juvix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--- the functions here should be eventually put in the stdlib
module Data.Tmp;

import Prelude open;
import ContainersPrelude open;

printNatListLn : List Nat → IO
| nil := printStringLn "nil"
Expand Down
2 changes: 1 addition & 1 deletion Data/Tree.juvix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--- N-Ary trees with pretty printing.
module Data.Tree;

import Prelude open;
import ContainersPrelude open;

--- A ;List; of trees.
Forest (A : Type) : Type := List (Tree A);
Expand Down
2 changes: 1 addition & 1 deletion Data/UnbalancedSet.juvix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Data.UnbalancedSet;

import Prelude open;
import ContainersPrelude open;

import Stdlib.Trait.Ord as Ord open using {Ord; mkOrd; module Ord};

Expand Down

0 comments on commit 471fa23

Please sign in to comment.