Skip to content

Commit

Permalink
fix: rename Zamazingo.Meta module to Hebele.Meta
Browse files Browse the repository at this point in the history
`Zamazingo.*` modules should be rather project-indendendent.
  • Loading branch information
vst committed Jan 9, 2024
1 parent ea6ca0a commit 361c908
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .hlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- { name: Data.Text, as: T }
- { name: Data.Text.Lazy, as: TL }
- { name: Data.Text.Encoding, as: TE }
- { name: Zamazingo.Meta, as: Z.Meta, importStyle: qualified, asRequired: true }
- { name: Zamazingo.Text, as: Z.Text, importStyle: qualified, asRequired: true }
- { name: Data.Text.IO, as: TIO }
- { name: Options.Applicative, as: OA }
Expand Down
6 changes: 3 additions & 3 deletions src/Hebele/Cli.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import Control.Applicative ((<**>), (<|>))
import Control.Monad (join)
import qualified Data.Text as T
import qualified Data.Text.IO as TIO
import qualified Hebele.Meta as Meta
import qualified Options.Applicative as OA
import System.Exit (ExitCode (..))
import qualified Zamazingo.Meta as Z.Meta


-- * Entrypoint
Expand Down Expand Up @@ -87,7 +87,7 @@ doFarewell n = do
-- | Version option parser.
infoOptVersion :: OA.Parser (a -> a)
infoOptVersion =
OA.infoOption Z.Meta.versionString $
OA.infoOption Meta.versionString $
OA.short 'v'
<> OA.long "version"
<> OA.help "Show application version and exit"
Expand All @@ -96,7 +96,7 @@ infoOptVersion =
-- | Header 'OA.InfoMod'.
infoModHeader :: OA.InfoMod a
infoModHeader =
OA.header (T.unpack (Z.Meta.name <> " - " <> Z.Meta.title <> " v" <> Z.Meta.versionText))
OA.header (T.unpack (Meta.name <> " - " <> Meta.title <> " v" <> Meta.versionText))


-- | Footer 'OA.InfoMod'.
Expand Down
2 changes: 1 addition & 1 deletion src/Zamazingo/Meta.hs → src/Hebele/Meta.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE OverloadedStrings #-}

-- | This module provides project metadata information definitions.
module Zamazingo.Meta where
module Hebele.Meta where

import qualified Data.Text as T
import Data.Version (Version, showVersion)
Expand Down

0 comments on commit 361c908

Please sign in to comment.