Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimization, optimization, optimization, optimization... still using…
… way too much memory
- Loading branch information
Showing
7 changed files
with
68 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
module Hisg.Formats.Base ( | ||
validNickChars | ||
validNickChars, | ||
validChanChars | ||
) where | ||
|
||
import qualified Data.ByteString.Char8 as S | ||
|
||
-- | Valid nickname characters according to IRC RFC 2812 are A-Z, a-z, {}[]`^\|. | ||
validNickChars :: String | ||
validNickChars = "[A-Za-z\\[\\]\\\\`_\\^\\{\\|\\}" | ||
validNickChars = "A-Za-z\\[\\]\\\\`_\\^\\{\\|\\}" | ||
|
||
-- | Valid channel characters are "any octet except NUL, BELL, CR, LF, " ", "," and ":"" | ||
validChanChars :: String | ||
validChanChars = "^\\r\\n\\0\\s,:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters