Loading app/Main.hs +9 −2 Original line number Diff line number Diff line Loading @@ -31,7 +31,10 @@ handle style = fromMaybe (const help) (lookup style styles) . T.dropWhileEnd isS -- |Help string. help :: T.Text help = T.unlines [ " - Mock 3.0.0 - ", " ╔════════════════════╗", " ║ Mock 3.3.0 ║", " ╚════════════════════╝", "", "A Great PrOgrAM tO TRANsFoRM TEXt, wRiTten iN HaSKeLL.", "By Nicolas Lenz. Free and open source under the WTFPL.", "Webpage (source code, issues, pull requests): https://git.eisfunke.com/software/mock", Loading @@ -40,4 +43,8 @@ help = T.unlines [ "Help: mock --help", "", "Styles: ", T.intercalate "\n" (map (\(name, _) -> T.concat [" - ", name, ": ", styleHelp name]) styles)] T.intercalate "\n" styleHelps] where styleHelps = map (\(name, _) -> T.concat [" - ", name, ": ", T.replicate (maxNameLength - T.length name) " " , styleHelp name]) styles maxNameLength = maximum . map (T.length . fst) $ styles mock.cabal +2 −2 Original line number Diff line number Diff line Loading @@ -4,10 +4,10 @@ cabal-version: 2.2 -- -- see: https://github.com/sol/hpack -- -- hash: 72ef52c2162b8348d893d8b683bbf0a315e414192ee8d68cc9bf5dbb8f9c45d4 -- hash: 25216876ead15fc7d80c86db52d327284f1e1e11704a736cec1d15280cc22ed3 name: mock version: 3.2.1 version: 3.3.0 synopsis: GrEAt HAskeLL PrOGRaM to trANsForm tEXT description: Please see the README at <https://git.eisfunke.com/software/mock#readme> category: String Loading package.yaml +1 −1 Original line number Diff line number Diff line name: mock version: 3.2.1 version: 3.3.0 license: WTFPL git: "https://git.eisfunke.com/software/mock" author: "Nicolas Lenz" Loading src/Mock/Help.hs +13 −13 File changed.Contains only whitespace changes. Show changes Loading
app/Main.hs +9 −2 Original line number Diff line number Diff line Loading @@ -31,7 +31,10 @@ handle style = fromMaybe (const help) (lookup style styles) . T.dropWhileEnd isS -- |Help string. help :: T.Text help = T.unlines [ " - Mock 3.0.0 - ", " ╔════════════════════╗", " ║ Mock 3.3.0 ║", " ╚════════════════════╝", "", "A Great PrOgrAM tO TRANsFoRM TEXt, wRiTten iN HaSKeLL.", "By Nicolas Lenz. Free and open source under the WTFPL.", "Webpage (source code, issues, pull requests): https://git.eisfunke.com/software/mock", Loading @@ -40,4 +43,8 @@ help = T.unlines [ "Help: mock --help", "", "Styles: ", T.intercalate "\n" (map (\(name, _) -> T.concat [" - ", name, ": ", styleHelp name]) styles)] T.intercalate "\n" styleHelps] where styleHelps = map (\(name, _) -> T.concat [" - ", name, ": ", T.replicate (maxNameLength - T.length name) " " , styleHelp name]) styles maxNameLength = maximum . map (T.length . fst) $ styles
mock.cabal +2 −2 Original line number Diff line number Diff line Loading @@ -4,10 +4,10 @@ cabal-version: 2.2 -- -- see: https://github.com/sol/hpack -- -- hash: 72ef52c2162b8348d893d8b683bbf0a315e414192ee8d68cc9bf5dbb8f9c45d4 -- hash: 25216876ead15fc7d80c86db52d327284f1e1e11704a736cec1d15280cc22ed3 name: mock version: 3.2.1 version: 3.3.0 synopsis: GrEAt HAskeLL PrOGRaM to trANsForm tEXT description: Please see the README at <https://git.eisfunke.com/software/mock#readme> category: String Loading
package.yaml +1 −1 Original line number Diff line number Diff line name: mock version: 3.2.1 version: 3.3.0 license: WTFPL git: "https://git.eisfunke.com/software/mock" author: "Nicolas Lenz" Loading