From f499e18ac8803ec18591bcc4ff49d2ceb6fd3537 Mon Sep 17 00:00:00 2001 From: Dmitry Zuikov Date: Thu, 9 May 2024 05:24:05 +0300 Subject: [PATCH] wip --- fixme-new/LICENSE | 30 ++++++++++++++++++++++++++++++ fixme-new/app/FixmeMain.hs | 14 ++++++++++++++ fixme-new/fixme.cabal | 7 +++++++ fixme-new/lib/Fixme.hs | 8 ++++++++ fixme-new/lib/Fixme/Prelude.hs | 7 +++++++ fixme-new/lib/Fixme/Types.hs | 9 +++++++++ 6 files changed, 75 insertions(+) create mode 100644 fixme-new/LICENSE create mode 100644 fixme-new/lib/Fixme.hs create mode 100644 fixme-new/lib/Fixme/Prelude.hs create mode 100644 fixme-new/lib/Fixme/Types.hs diff --git a/fixme-new/LICENSE b/fixme-new/LICENSE new file mode 100644 index 00000000..3cbe915d --- /dev/null +++ b/fixme-new/LICENSE @@ -0,0 +1,30 @@ +Copyright (c) 2023, + +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 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/fixme-new/app/FixmeMain.hs b/fixme-new/app/FixmeMain.hs index a3adec84..c11d94c0 100644 --- a/fixme-new/app/FixmeMain.hs +++ b/fixme-new/app/FixmeMain.hs @@ -1,5 +1,6 @@ module Main where +import Fixme -- TODO: fixme-new -- после майских: @@ -47,3 +48,16 @@ main :: IO () main = do print "HI, DUDE" + -- TODO: discover-config + -- + -- TODO: local-config-has-same-name-with-binary + -- + -- TODO: per-user-config-has-same-name-with-binary + -- + -- TODO: per-user-config-added-after-per-project-config + + -- TODO: scan-all-sources + -- for-source-from-con + + -- TODO: + diff --git a/fixme-new/fixme.cabal b/fixme-new/fixme.cabal index 7dcce057..83d8de93 100644 --- a/fixme-new/fixme.cabal +++ b/fixme-new/fixme.cabal @@ -96,8 +96,15 @@ library import: shared-properties exposed-modules: + Fixme + Fixme.Types + Fixme.Prelude build-depends: base + , hbs2-core + , hbs2-peer + , fuzzy-parse + , suckless-conf , base16-bytestring , binary , unix diff --git a/fixme-new/lib/Fixme.hs b/fixme-new/lib/Fixme.hs new file mode 100644 index 00000000..d57be6f0 --- /dev/null +++ b/fixme-new/lib/Fixme.hs @@ -0,0 +1,8 @@ +module Fixme + ( module Fixme.Types + , module Fixme.Prelude + ) where + +import Fixme.Prelude +import Fixme.Types + diff --git a/fixme-new/lib/Fixme/Prelude.hs b/fixme-new/lib/Fixme/Prelude.hs new file mode 100644 index 00000000..9e5d017f --- /dev/null +++ b/fixme-new/lib/Fixme/Prelude.hs @@ -0,0 +1,7 @@ +module Fixme.Prelude + ( module All + ) where + +import HBS2.Prelude.Plated as All + + diff --git a/fixme-new/lib/Fixme/Types.hs b/fixme-new/lib/Fixme/Types.hs new file mode 100644 index 00000000..eb916ebf --- /dev/null +++ b/fixme-new/lib/Fixme/Types.hs @@ -0,0 +1,9 @@ +module Fixme.Types where + +import Fixme.Prelude + +data Fixme = + Fixme + { + } +