Browse Source

initialized a cabal enviornment

master
depsterr 6 months ago
parent
commit
af7f1ed738
  1. 0
      CHANGELOG.md
  2. 13
      LICENSE
  3. 2
      Setup.hs
  4. 8
      app/Main.hs
  5. 4
      lib/MyLib.hs
  6. 33
      sexprml.cabal

0
CHANGELOG.md

13
LICENSE

@ -0,0 +1,13 @@
Copyright (c) 2021 depsterr
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.

2
Setup.hs

@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain

8
app/Main.hs

@ -0,0 +1,8 @@
module Main where
import qualified MyLib (someFunc)
main :: IO ()
main = do
putStrLn "Hello, Haskell!"
MyLib.someFunc

4
lib/MyLib.hs

@ -0,0 +1,4 @@
module MyLib (someFunc) where
someFunc :: IO ()
someFunc = putStrLn "someFunc"

33
sexprml.cabal

@ -0,0 +1,33 @@
cabal-version: 2.4
-- Initial package description 'sexprml.cabal' generated by 'cabal init'.
-- For further documentation, see http://haskell.org/cabal/users-guide/
name: sexprml
version: 0.1.0.0
synopsis: toy programming language
-- description:
homepage: https://githug.xyz/depsterr/sexprml
-- bug-reports:
license: ISC
license-file: LICENSE
author: depsterr
maintainer: depsterr@protonmail.com
-- copyright:
category: Programming Language
extra-source-files: CHANGELOG.md, readme.md
library
exposed-modules: MyLib
-- other-modules:
-- other-extensions:
build-depends: base ^>=4.14.1.0
hs-source-dirs: lib
default-language: Haskell2010
executable sexprml
main-is: Main.hs
-- other-modules:
-- other-extensions:
build-depends: base ^>=4.14.1.0, sexprml
hs-source-dirs: app
default-language: Haskell2010
Loading…
Cancel
Save