packages feed

Hach 0.0.1 → 0.0.1.1

raw patch · 2 files changed

+2/−7 lines, 2 filesdep ~vtyPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: vty

API changes (from Hackage documentation)

Files

Hach.cabal view
@@ -1,5 +1,5 @@ Name:                   Hach-Version:                0.0.1+Version:                0.0.1.1 Category:               Network Description:            Simple chat Synopsis:               Simple chat@@ -35,7 +35,7 @@   Other-modules:        Format  Executable hach-nclient-  Build-Depends:        vty == 4.7.0.12,+  Build-Depends:        vty < 4.8,                         vty-ui == 1.5   Main-is:              Client.hs   HS-Source-Dirs:       nclient, libhach
client/Format.hs view
@@ -1,25 +1,20 @@ {-# LANGUAGE UnicodeSyntax #-}--- | Client format module  module Format where  import Hach.Types --- | Format of message in client format ∷ S2C → String format (SMessage nick _) = "[%s] <" ++ nick ++ ">: %s\n" format (SAction  nick _) = "[%s] *" ++ nick ++ " %s\n" format (SSetNick nick _) = "[%s] "  ++ nick ++ " %s\n" format (SSystem       _) = "[%s] ! %s\n" --- | Format of timestamp in client timeFormat ∷ String timeFormat = "%H:%M:%S" --- | Special prefix of CAction message commandAction ∷ String commandAction = "/me " --- | Special prefix of CSetNick message commandSetNick ∷ String commandSetNick = "/nick "