summaryrefslogtreecommitdiff
path: root/tiled
diff options
context:
space:
mode:
authorstuebinm2023-10-23 23:18:34 +0200
committerstuebinm2023-10-24 01:21:52 +0200
commit9110064fe62f98dd3ecc5fb4c3915a843492b8fb (patch)
tree6a8e3d54bef365bf1c6c4f72a7a75dd5d1f05d40 /tiled
parenta4461ce5d73a617e614e259bfe30b4e895c38a19 (diff)
a year went by
This does many meta-things, but changes no functionality: - get rid of stack, and use just cabal with a stackage snapshot instead (why did I ever think stack was a good idea?) - update the stackage snapshot to something halfway recent - thus making builds work on nixpkgs-23.05 (current stable) - separating out packages into their own cabal files - use the GHC2021 set of extensions as default - very slight code changes to make things build again - update readme accordingly - stylish-haskell run
Diffstat (limited to 'tiled')
-rw-r--r--tiled/Data/Tiled.hs4
-rw-r--r--tiled/default.nix13
-rw-r--r--tiled/tiled.cabal24
3 files changed, 37 insertions, 4 deletions
diff --git a/tiled/Data/Tiled.hs b/tiled/Data/Tiled.hs
index 9256375..99c5c9d 100644
--- a/tiled/Data/Tiled.hs
+++ b/tiled/Data/Tiled.hs
@@ -1,13 +1,9 @@
-{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DeriveAnyClass #-}
-{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
-{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
-{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
diff --git a/tiled/default.nix b/tiled/default.nix
new file mode 100644
index 0000000..c112497
--- /dev/null
+++ b/tiled/default.nix
@@ -0,0 +1,13 @@
+{ mkDerivation, aeson, base, bytestring, lib, text, universum
+, vector
+}:
+mkDerivation {
+ pname = "tiled";
+ version = "0.1";
+ src = ./.;
+ libraryHaskellDepends = [
+ aeson base bytestring text universum vector
+ ];
+ homepage = "https://stuebinm.eu/git/walint";
+ license = "unknown";
+}
diff --git a/tiled/tiled.cabal b/tiled/tiled.cabal
new file mode 100644
index 0000000..2864748
--- /dev/null
+++ b/tiled/tiled.cabal
@@ -0,0 +1,24 @@
+cabal-version: 3.0
+name: tiled
+version: 0.1
+author: stuebinm
+maintainer: stuebinm@disroot.org
+copyright: 2022 stuebinm
+homepage: https://stuebinm.eu/git/walint
+
+library
+ exposed-modules:
+ Data.Tiled
+ Data.Tiled.Abstract
+ Data.Tiled.TH
+ default-extensions:
+ NoImplicitPrelude
+ ghc-options: -Wall -Wno-name-shadowing -Wno-unticked-promoted-constructors
+ build-depends:
+ aeson
+ , base
+ , bytestring
+ , text
+ , universum
+ , vector
+ default-language: GHC2021