Skip to content

A peer-to-peer stack for code collaboration

Create a new package "radicle-lang" under the root. Use this package from the top level radicle package.

Fintan Halpennya22d9c24b888
diff --git a/package.yaml b/package.yaml
index c70e17f..5f3c3cb 100644
--- a/package.yaml
+++ b/package.yaml
@@ -21,6 +21,7 @@ custom-setup:
dependencies:
- base >=4 && <5
- protolude
+- radicle-lang
ghc-options:
- -Wall
diff --git a/radicle-lang/.gitignore b/radicle-lang/.gitignore
new file mode 100644
index 0000000..0694a37
--- /dev/null
+++ b/radicle-lang/.gitignore
@@ -0,0 +1,3 @@
+.stack-work/
+radicle-lang.cabal
+*~
\ No newline at end of file
diff --git a/radicle-lang/ChangeLog.md b/radicle-lang/ChangeLog.md
new file mode 100644
index 0000000..c35bdbf
--- /dev/null
+++ b/radicle-lang/ChangeLog.md
@@ -0,0 +1,3 @@
+# Changelog for radicle-lang
+
+## Unreleased changes
diff --git a/radicle-lang/LICENSE b/radicle-lang/LICENSE
new file mode 100644
index 0000000..102126f
--- /dev/null
+++ b/radicle-lang/LICENSE
@@ -0,0 +1,30 @@
+Copyright Author name here (c) 2019
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+ * Neither the name of Author name here nor the names of other
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/radicle-lang/README.md b/radicle-lang/README.md
new file mode 100644
index 0000000..491b69b
--- /dev/null
+++ b/radicle-lang/README.md
@@ -0,0 +1 @@
+# radicle-lang
diff --git a/radicle-lang/Setup.hs b/radicle-lang/Setup.hs
new file mode 100644
index 0000000..9a994af
--- /dev/null
+++ b/radicle-lang/Setup.hs
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
diff --git a/radicle-lang/package.yaml b/radicle-lang/package.yaml
new file mode 100644
index 0000000..27a8b5b
--- /dev/null
+++ b/radicle-lang/package.yaml
@@ -0,0 +1,76 @@
+author: "Author name here"
+copyright: "2019 Author name here"
+github: "githubuser/radicle-lang"
+license: BSD3
+maintainer: "[email protected]"
+name: radicle-lang
+version: 0.0.0.4
+
+extra-source-files:
+- README.md
+- ChangeLog.md
+
+# Metadata used when publishing your package
+# synopsis: Short description of your package
+# category: Web
+
+# To avoid duplicated efforts in documentation and dealing with the
+# complications of embedding Haddock markup inside cabal files, it is
+# common to point users to the README.md file.
+description: Please see the README on GitHub at <https://github.com/githubuser/radicle-lang#readme>
+
+dependencies:
+- base >= 4.7 && < 5
+
+data-files:
+- ../rad/**/*.rad
+
+library:
+ source-dirs: src
+ dependencies:
+ - aeson
+ - ansi-terminal
+ - bytestring
+ - containers
+ - cryptonite
+ - directory
+ - filepath
+ - generics-eot
+ - haskeline
+ - megaparsec
+ - mmorph
+ - mtl
+ - pointed
+ - prettyprinter
+ - prettyprinter-ansi-terminal
+ - process
+ - protolude
+ - serialise
+ - scientific
+ - text
+ - time
+ - uuid
+ - unliftio-core
+ - unordered-containers
+ - vector
+
+default-extensions:
+- ConstraintKinds
+- DefaultSignatures
+- DeriveDataTypeable
+- DeriveGeneric
+- DeriveTraversable
+- FlexibleContexts
+- FlexibleInstances
+- FunctionalDependencies
+- GeneralizedNewtypeDeriving
+- LambdaCase
+- MultiParamTypeClasses
+- NoImplicitPrelude
+- OverloadedStrings
+- RankNTypes
+- RecordWildCards
+- ScopedTypeVariables
+- StandaloneDeriving
+- TupleSections
+- TypeFamilies
diff --git a/src/Radicle/Internal/Annotation.hs b/radicle-lang/src/Radicle/Internal/Annotation.hs
similarity index 100%
rename from src/Radicle/Internal/Annotation.hs
rename to radicle-lang/src/Radicle/Internal/Annotation.hs
diff --git a/src/Radicle/Internal/CLI.hs b/radicle-lang/src/Radicle/Internal/CLI.hs
similarity index 100%
rename from src/Radicle/Internal/CLI.hs
rename to radicle-lang/src/Radicle/Internal/CLI.hs
diff --git a/src/Radicle/Internal/ConcurrentMap.hs b/radicle-lang/src/Radicle/Internal/ConcurrentMap.hs
similarity index 100%
rename from src/Radicle/Internal/ConcurrentMap.hs
rename to radicle-lang/src/Radicle/Internal/ConcurrentMap.hs
diff --git a/src/Radicle/Internal/Core.hs b/radicle-lang/src/Radicle/Internal/Core.hs
similarity index 100%
rename from src/Radicle/Internal/Core.hs
rename to radicle-lang/src/Radicle/Internal/Core.hs
diff --git a/src/Radicle/Internal/Crypto.hs b/radicle-lang/src/Radicle/Internal/Crypto.hs
similarity index 100%
rename from src/Radicle/Internal/Crypto.hs
rename to radicle-lang/src/Radicle/Internal/Crypto.hs
diff --git a/src/Radicle/Internal/Doc.hs b/radicle-lang/src/Radicle/Internal/Doc.hs
similarity index 99%
rename from src/Radicle/Internal/Doc.hs
rename to radicle-lang/src/Radicle/Internal/Doc.hs
index 0e8a4e7..a21af3b 100644
--- a/src/Radicle/Internal/Doc.hs
+++ b/radicle-lang/src/Radicle/Internal/Doc.hs
@@ -26,4 +26,3 @@ instance Ord a => Ord (Docd a) where
noDocs :: [(a, c)] -> [(a, Maybe b, c)]
noDocs = fmap $ \(x,y) -> (x, Nothing, y)
-
diff --git a/src/Radicle/Internal/Effects.hs b/radicle-lang/src/Radicle/Internal/Effects.hs
similarity index 100%
rename from src/Radicle/Internal/Effects.hs
rename to radicle-lang/src/Radicle/Internal/Effects.hs
diff --git a/src/Radicle/Internal/Effects/Capabilities.hs b/radicle-lang/src/Radicle/Internal/Effects/Capabilities.hs
similarity index 99%
rename from src/Radicle/Internal/Effects/Capabilities.hs
rename to radicle-lang/src/Radicle/Internal/Effects/Capabilities.hs
index a6b9139..320009c 100644
--- a/src/Radicle/Internal/Effects/Capabilities.hs
+++ b/radicle-lang/src/Radicle/Internal/Effects/Capabilities.hs
@@ -9,7 +9,7 @@ import Protolude
import qualified Data.ByteString as BS
import Data.Text.Prettyprint.Doc (PageWidth)
import Data.Time
-import Paths_radicle
+import Paths_radicle_lang
import System.Console.ANSI (hSupportsANSI)
import System.Console.Haskeline hiding (catch)
import System.Directory (doesFileExist, setCurrentDirectory)
diff --git a/src/Radicle/Internal/Eval.hs b/radicle-lang/src/Radicle/Internal/Eval.hs
similarity index 100%
rename from src/Radicle/Internal/Eval.hs
rename to radicle-lang/src/Radicle/Internal/Eval.hs
diff --git a/src/Radicle/Internal/Identifier.hs b/radicle-lang/src/Radicle/Internal/Identifier.hs
similarity index 100%
rename from src/Radicle/Internal/Identifier.hs
rename to radicle-lang/src/Radicle/Internal/Identifier.hs
diff --git a/src/Radicle/Internal/Interpret.hs b/radicle-lang/src/Radicle/Internal/Interpret.hs
similarity index 100%
rename from src/Radicle/Internal/Interpret.hs
rename to radicle-lang/src/Radicle/Internal/Interpret.hs
diff --git a/src/Radicle/Internal/Json.hs b/radicle-lang/src/Radicle/Internal/Json.hs
similarity index 100%
rename from src/Radicle/Internal/Json.hs
rename to radicle-lang/src/Radicle/Internal/Json.hs
diff --git a/src/Radicle/Internal/Number.hs b/radicle-lang/src/Radicle/Internal/Number.hs
similarity index 100%
rename from src/Radicle/Internal/Number.hs
rename to radicle-lang/src/Radicle/Internal/Number.hs
diff --git a/src/Radicle/Internal/Orphans.hs b/radicle-lang/src/Radicle/Internal/Orphans.hs
similarity index 100%
rename from src/Radicle/Internal/Orphans.hs
rename to radicle-lang/src/Radicle/Internal/Orphans.hs
diff --git a/src/Radicle/Internal/Parse.hs b/radicle-lang/src/Radicle/Internal/Parse.hs
similarity index 100%
rename from src/Radicle/Internal/Parse.hs
rename to radicle-lang/src/Radicle/Internal/Parse.hs
diff --git a/src/Radicle/Internal/Pretty.hs b/radicle-lang/src/Radicle/Internal/Pretty.hs
similarity index 100%
rename from src/Radicle/Internal/Pretty.hs
rename to radicle-lang/src/Radicle/Internal/Pretty.hs
diff --git a/src/Radicle/Internal/PrimFns.hs b/radicle-lang/src/Radicle/Internal/PrimFns.hs
similarity index 100%
rename from src/Radicle/Internal/PrimFns.hs
rename to radicle-lang/src/Radicle/Internal/PrimFns.hs
diff --git a/src/Radicle/Internal/Time.hs b/radicle-lang/src/Radicle/Internal/Time.hs
similarity index 100%
rename from src/Radicle/Internal/Time.hs
rename to radicle-lang/src/Radicle/Internal/Time.hs
diff --git a/src/Radicle/Internal/Type.hs b/radicle-lang/src/Radicle/Internal/Type.hs
similarity index 100%
rename from src/Radicle/Internal/Type.hs
rename to radicle-lang/src/Radicle/Internal/Type.hs
diff --git a/src/Radicle/Internal/UUID.hs b/radicle-lang/src/Radicle/Internal/UUID.hs
similarity index 100%
rename from src/Radicle/Internal/UUID.hs
rename to radicle-lang/src/Radicle/Internal/UUID.hs
diff --git a/stack.yaml b/stack.yaml
index 6904b83..46d2d63 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -37,6 +37,7 @@ resolver: snapshot.yaml
# will not be run. This is useful for tweaking upstream packages.
packages:
- .
+- radicle-lang
# Add extra deps as `packages` to `snapshot.yaml`.
# extra-deps: