Skip to content

Import Data.Generic.Rep from prelude #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
1 change: 0 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"dependencies": {
"purescript-fixed-points": "main",
"purescript-datetime": "master",
"purescript-generics-rep": "master",
"purescript-transformers": "master",
"purescript-lists": "master",
"purescript-prelude": "master",
Expand Down
1 change: 0 additions & 1 deletion spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
, "datetime"
, "effect"
, "fixed-points"
, "generics-rep"
, "lists"
, "numbers"
, "parsing"
Expand Down
4 changes: 2 additions & 2 deletions src/Data/Formatter/DateTime.purs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ import Data.Formatter.Internal (foldDigits)
import Data.Formatter.Parser.Number (parseDigit)
import Data.Formatter.Parser.Utils (runP, oneOfAs)
import Data.Generic.Rep (class Generic)
import Data.Generic.Rep.Show (genericShow)
import Data.Int as Int
import Data.List as List
import Data.Maybe (Maybe(..), fromMaybe, isJust, maybe)
import Data.Newtype (unwrap)
import Data.Ord (abs)
import Data.Show.Generic (genericShow)
import Data.String as Str
import Data.String.CodeUnits as CU
import Data.Time as T
Expand Down Expand Up @@ -320,7 +320,7 @@ parseSignedInt ∷ ∀ m
→ P.ParserT String m Int
parseSignedInt maxLength validators errMsg = do
isNegative ← isJust <$> PC.optionMaybe (PS.char '-')
(if isNegative then negate else identity) <$> parseInt maxLength validators errMsg
(if isNegative then negate else identity) <$> parseInt maxLength validators errMsg

parseInt ∷ ∀ m
. Monad m
Expand Down
Loading