File tree 2 files changed +15
-3
lines changed
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change
1
+ packages :
2
+ .
3
+
4
+ -- To compile with js-backend use this:
5
+ source-repository-package
6
+ type : git
7
+ location : https://github.com/typeable/uuid.git
8
+ tag : 49f50ae517de0e4d5dfbf783edc61e71cfd54d6b
9
+ subdir :
10
+ uuid
11
+ uuid-types
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import Database.PostgreSQL.Simple.ToField as PG (ToField)
34
34
#endif
35
35
#endif
36
36
import GHC.TypeLits
37
+ import Prelude as P
37
38
import Test.QuickCheck
38
39
import Text.ParserCombinators.ReadP
39
40
import Web.HttpApiData
@@ -70,7 +71,7 @@ randomId = coerce <$> UUID.V4.nextRandom
70
71
{-# INLINE randomId #-}
71
72
72
73
instance KnownSymbol s => Show (Id s ) where
73
- show (Id v) = " Id-" <> symbolVal (Proxy @ s ) <> " -" <> show v
74
+ show (Id v) = " Id-" <> symbolVal (Proxy @ s ) <> " -" <> P. show v
74
75
75
76
instance KnownSymbol s => Read (Id s ) where
76
77
readsPrec _ = readP_to_S $ do
@@ -164,7 +165,7 @@ mkIntId = coerce
164
165
{-# INLINE mkIntId #-}
165
166
166
167
instance KnownSymbol s => Show (IntId s ) where
167
- show (IntId v) = " IntId-" <> symbolVal (Proxy @ s ) <> " -" <> show v
168
+ show (IntId v) = " IntId-" <> symbolVal (Proxy @ s ) <> " -" <> P. show v
168
169
169
170
instance KnownSymbol s => Read (IntId s ) where
170
171
readsPrec _ = readP_to_S $ do
@@ -213,7 +214,7 @@ mkName = coerce
213
214
{-# INLINE mkName #-}
214
215
215
216
instance KnownSymbol s => Show (Name s ) where
216
- show (Name v) = " Name-" <> symbolVal (Proxy @ s ) <> " -" <> show v
217
+ show (Name v) = " Name-" <> symbolVal (Proxy @ s ) <> " -" <> P. show v
217
218
218
219
instance KnownSymbol s => Read (Name s ) where
219
220
readsPrec _ = readP_to_S $ do
You can’t perform that action at this time.
0 commit comments