Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
task:
name: FreeBSD
freebsd_instance:
image_family: freebsd-14-2
image_family: freebsd-14-3
install_script: pkg install -y ghc hs-cabal-install git autoconf bash
script:
- ./.cirrus/ci.sh build_freebd
23 changes: 14 additions & 9 deletions app/Main.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{-# LANGUAGE TemplateHaskell #-}

module Main where

import Data.Function ((&))
Expand All @@ -6,6 +8,7 @@ import Data.Map.Strict qualified as Map
import Data.Text (Text)
import Data.Text qualified as Text
import Data.Version (showVersion)
import Development.GitRev
import Effectful
import Effectful.Error.Static
import Effectful.Error.Static qualified as Error
Expand Down Expand Up @@ -42,11 +45,15 @@ data Command
| Deploy
deriving stock (Show, Eq)

programVersion :: String
programVersion =
"confer version " <> showVersion version <> " (commit " <> $(gitHash) <> ")"

main :: IO ()
main = do
hSetBuffering stdout LineBuffering
let opts =
info (parseOptions <**> simpleVersioner (showVersion version) <**> helper) $
info (parseOptions <**> simpleVersioner programVersion <**> helper) $
header "confer – The dotfiles manager"
<> progDescDoc (Just programDescription)
<> footerDoc (Just programFooter)
Expand Down Expand Up @@ -157,14 +164,12 @@ osPathOption = maybeReader OsPath.encodeUtf

deploymentOsOption :: ReadM DeploymentOS
deploymentOsOption = maybeReader $
\string ->
case string of
"all" -> Just AllOS
os -> Just $ OS (Text.pack os)
\case
"all" -> Just AllOS
os -> Just $ OS (Text.pack os)

deploymentArchOption :: ReadM DeploymentArchitecture
deploymentArchOption = maybeReader $
\string ->
case string of
"all" -> Just AllArchs
arch -> Just $ Arch (Text.pack arch)
\case
"all" -> Just AllArchs
arch -> Just $ Arch (Text.pack arch)
15 changes: 8 additions & 7 deletions cabal.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ constraints: any.OneTuple ==0.4.2,
any.StateVar ==1.2.2,
any.aeson ==2.2.3.0,
aeson +ordered-keymap,
any.ansi-terminal ==1.1.3,
any.ansi-terminal ==1.1.4,
ansi-terminal -example,
any.ansi-terminal-types ==1.1.3,
any.array ==0.5.8.0,
Expand Down Expand Up @@ -40,7 +40,7 @@ constraints: any.OneTuple ==0.4.2,
effectful -benchmark-foreign-libraries,
any.effectful-core ==2.6.1.0,
any.exceptions ==0.10.9,
any.extra ==1.8,
any.extra ==1.8.1,
any.file-embed ==0.0.16.0,
any.filepath ==1.5.4.0,
any.generically ==0.1.1,
Expand All @@ -65,7 +65,8 @@ constraints: any.OneTuple ==0.4.2,
any.integer-conversion ==0.1.1,
any.integer-logarithms ==1.0.4,
integer-logarithms -check-bounds +integer-gmp,
any.lua ==2.3.3,
any.layoutz ==0.2.0.0,
any.lua ==2.3.4,
lua +allow-unsafe-gc -apicheck -cross-compile +export-dynamic -lua_32bits -pkg-config -system-lua,
any.monad-control ==1.0.3.1,
any.mtl ==2.3.1,
Expand Down Expand Up @@ -96,8 +97,8 @@ constraints: any.OneTuple ==0.4.2,
any.stm ==2.5.3.1,
any.strict ==0.5.1,
any.strict-mutable-base ==1.1.0.0,
any.tagged ==0.8.9,
tagged +deepseq +transformers,
any.tagged ==0.8.10,
tagged +deepseq +template-haskell,
any.tasty ==1.5.3,
tasty +unix,
any.tasty-coverage ==0.1.4.0,
Expand All @@ -124,12 +125,12 @@ constraints: any.OneTuple ==0.4.2,
any.unix ==2.8.7.0,
any.unliftio ==0.2.25.1,
any.unliftio-core ==0.2.1.0,
any.unordered-containers ==0.2.20.1,
any.unordered-containers ==0.2.21,
unordered-containers -debug,
any.uuid-types ==1.0.6,
any.validation-selective ==0.2.0.0,
any.vector ==0.13.2.0,
vector +boundschecks -internalchecks -unsafechecks -wall,
any.vector-stream ==0.1.0.1,
any.witherable ==0.5
index-state: hackage.haskell.org 2025-10-13T15:52:55Z
index-state: hackage.haskell.org 2025-12-25T16:49:32Z
1 change: 1 addition & 0 deletions confer.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ executable confer
effectful,
effectful-core,
filepath,
gitrev,
optparse-applicative,
text,

Expand Down
Loading