From 2b5e05651f1329d27ce89ce12ee4617723d9ae50 Mon Sep 17 00:00:00 2001 From: Dmitry Zuikov Date: Fri, 5 Jul 2024 06:24:37 +0300 Subject: [PATCH] wip --- flake.nix | 1 + hbs2-cli/app/Main.hs | 1 + hbs2-cli/hbs2-cli.cabal | 124 +++++++++++++++++++++++++++++++++++++++ hbs2-cli/lib/HBS2/CLI.hs | 1 + 4 files changed, 127 insertions(+) create mode 100644 hbs2-cli/app/Main.hs create mode 100644 hbs2-cli/hbs2-cli.cabal create mode 100644 hbs2-cli/lib/HBS2/CLI.hs diff --git a/flake.nix b/flake.nix index 398f9bf4..b2948891 100644 --- a/flake.nix +++ b/flake.nix @@ -46,6 +46,7 @@ outputs = { self, nixpkgs, haskell-flake-utils, ... }@inputs: "hbs2-keyman" "hbs2-share" "hbs2-fixer" + "hbs2-cli" "fixme-new" ]; in diff --git a/hbs2-cli/app/Main.hs b/hbs2-cli/app/Main.hs new file mode 100644 index 00000000..87a433cc --- /dev/null +++ b/hbs2-cli/app/Main.hs @@ -0,0 +1 @@ +module Main where \ No newline at end of file diff --git a/hbs2-cli/hbs2-cli.cabal b/hbs2-cli/hbs2-cli.cabal new file mode 100644 index 00000000..6bff05ee --- /dev/null +++ b/hbs2-cli/hbs2-cli.cabal @@ -0,0 +1,124 @@ +cabal-version: 3.0 +name: hbs2-git +version: 0.24.1.2 +-- synopsis: +-- description: +license: BSD-3-Clause +license-file: LICENSE +author: Dmitry Zuikov +-- copyright: +category: System +build-type: Simple +-- extra-doc-files: CHANGELOG.md +-- extra-source-files: + +common shared-properties + ghc-options: + -Wall + -fno-warn-type-defaults + -threaded + -rtsopts + -O2 + "-with-rtsopts=-N4 -A64m -AL256m -I0" + + default-language: GHC2021 + + default-extensions: + ApplicativeDo + , BangPatterns + , BlockArguments + , ConstraintKinds + , DataKinds + , DeriveDataTypeable + , DeriveGeneric + , DerivingStrategies + , DerivingVia + , ExtendedDefaultRules + , FlexibleContexts + , FlexibleInstances + , GADTs + , GeneralizedNewtypeDeriving + , ImportQualifiedPost + , LambdaCase + , MultiParamTypeClasses + , OverloadedStrings + , QuasiQuotes + , RecordWildCards + , ScopedTypeVariables + , StandaloneDeriving + , TupleSections + , TypeApplications + , TypeFamilies + + + build-depends: + hbs2-core + , hbs2-peer + , hbs2-storage-simple + , hbs2-keyman + , db-pipe + , suckless-conf + + , attoparsec + , atomic-write + , bytestring + , binary + , containers + , directory + , exceptions + , filepath + , filepattern + , interpolatedstring-perl6 + , memory + , microlens-platform + , mtl + , safe + , serialise + , streaming + , stm + , text + , time + , timeit + , transformers + , typed-process + , unordered-containers + , unliftio + , unliftio-core + , zlib + , prettyprinter + , prettyprinter-ansi-terminal + , random + , vector + , unix + + +library + import: shared-properties + + exposed-modules: + HBS2.CLI + + build-depends: base + , text + , suckless-conf + , unix + , unliftio + + hs-source-dirs: lib + + +executable hbs2-cli + import: shared-properties + main-is: Main.hs + -- other-modules: + -- other-extensions: + build-depends: + base + , suckless-conf + , text + , hbs2-cli + , unliftio + + hs-source-dirs: app + default-language: GHC2021 + diff --git a/hbs2-cli/lib/HBS2/CLI.hs b/hbs2-cli/lib/HBS2/CLI.hs new file mode 100644 index 00000000..8804214a --- /dev/null +++ b/hbs2-cli/lib/HBS2/CLI.hs @@ -0,0 +1 @@ +module HBS2.CLI where