From 675e88a105fdc3222d365bac5bfccd63a13073ed Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 6 Apr 2020 15:14:20 +0000 Subject: [PATCH] Create project --- .gitignore | 2 ++ LICENSE | 21 +++++++++++++ haboli-infobot/README.md | 1 + haboli-infobot/app/Main.hs | 4 +++ haboli-infobot/haboli-infobot.cabal | 48 +++++++++++++++++++++++++++++ haboli-infobot/package.yaml | 30 ++++++++++++++++++ stack.yaml | 8 +++++ stack.yaml.lock | 26 ++++++++++++++++ 8 files changed, 140 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 haboli-infobot/README.md create mode 100644 haboli-infobot/app/Main.hs create mode 100644 haboli-infobot/haboli-infobot.cabal create mode 100644 haboli-infobot/package.yaml create mode 100644 stack.yaml create mode 100644 stack.yaml.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..76467e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.stack-work/ +*~ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..eee7b87 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Garmelon + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/haboli-infobot/README.md b/haboli-infobot/README.md new file mode 100644 index 0000000..d1fb8ec --- /dev/null +++ b/haboli-infobot/README.md @@ -0,0 +1 @@ +# haboli-infobot diff --git a/haboli-infobot/app/Main.hs b/haboli-infobot/app/Main.hs new file mode 100644 index 0000000..c51dbe5 --- /dev/null +++ b/haboli-infobot/app/Main.hs @@ -0,0 +1,4 @@ +module Main where + +main :: IO () +main = putStrLn "Nothing to see here!" diff --git a/haboli-infobot/haboli-infobot.cabal b/haboli-infobot/haboli-infobot.cabal new file mode 100644 index 0000000..71ace72 --- /dev/null +++ b/haboli-infobot/haboli-infobot.cabal @@ -0,0 +1,48 @@ +cabal-version: 1.12 + +-- This file has been generated from package.yaml by hpack version 0.31.2. +-- +-- see: https://github.com/sol/hpack +-- +-- hash: cbb37543f441c735429df4c7e5caec2cf786ed7d2e27cd612cb81c71f5c1be0b + +name: haboli-infobot +version: 0.1.0.0 +synopsis: A bot that counts connected clients and displays them in its nick +description: See +homepage: https://github.com/Garmelon/haboli-bot-collection#readme +bug-reports: https://github.com/Garmelon/haboli-bot-collection/issues +author: Garmelon +maintainer: Garmelon +copyright: 2020 Garmelon +license: MIT +build-type: Simple +extra-source-files: + README.md + +source-repository head + type: git + location: https://github.com/Garmelon/haboli-bot-collection + +library + other-modules: + Paths_haboli_infobot + hs-source-dirs: + src + build-depends: + base >=4.7 && <5 + , haboli + default-language: Haskell2010 + +executable haboli-infobot + main-is: Main.hs + other-modules: + Paths_haboli_infobot + hs-source-dirs: + app + ghc-options: -threaded -rtsopts -with-rtsopts=-N + build-depends: + base >=4.7 && <5 + , haboli + , haboli-infobot + default-language: Haskell2010 diff --git a/haboli-infobot/package.yaml b/haboli-infobot/package.yaml new file mode 100644 index 0000000..4162f20 --- /dev/null +++ b/haboli-infobot/package.yaml @@ -0,0 +1,30 @@ +name: haboli-infobot +version: 0.1.0.0 +license: MIT +author: Garmelon +copyright: 2020 Garmelon + +synopsis: A bot that counts connected clients and displays them in its nick +description: See +github: Garmelon/haboli-bot-collection + +extra-source-files: + - README.md + +dependencies: + - base >= 4.7 && < 5 + - haboli + +library: + source-dirs: src + +executables: + haboli-infobot: + main: Main.hs + source-dirs: app + ghc-options: + - -threaded + - -rtsopts + - -with-rtsopts=-N + dependencies: + - haboli-infobot diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..8dc14ca --- /dev/null +++ b/stack.yaml @@ -0,0 +1,8 @@ +resolver: lts-15.7 + +packages: + - haboli-infobot + +extra-deps: + - github: Garmelon/haboli + commit: ad393a67f67a97c4e74ce038b773c5bcead5ff10 diff --git a/stack.yaml.lock b/stack.yaml.lock new file mode 100644 index 0000000..fb46f52 --- /dev/null +++ b/stack.yaml.lock @@ -0,0 +1,26 @@ +# This file was autogenerated by Stack. +# You should not edit this file by hand. +# For more information, please see the documentation at: +# https://docs.haskellstack.org/en/stable/lock_files + +packages: +- completed: + size: 14086 + url: https://github.com/Garmelon/haboli/archive/ad393a67f67a97c4e74ce038b773c5bcead5ff10.tar.gz + cabal-file: + size: 1263 + sha256: b47acf31bb12e802de480983637998761ee56d5e4a2ac0cc251c02f4388cb814 + name: haboli + version: 0.3.1.0 + sha256: eb0ca0f08fc3c3caaf730c72aaaae31f582cef8dd30b8fc461b11e8e16115166 + pantry-tree: + size: 677 + sha256: fd8200eeae76d312f0bb5799873235c410f7274018903c936f73942441f0ac73 + original: + url: https://github.com/Garmelon/haboli/archive/ad393a67f67a97c4e74ce038b773c5bcead5ff10.tar.gz +snapshots: +- completed: + size: 491389 + url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/15/7.yaml + sha256: 92ab6303fe20ec928461c82ce0980b4d17c06f4e66205a2967e476474f686c17 + original: lts-15.7