Skip to content
This repository was archived by the owner on Dec 18, 2020. It is now read-only.

Commit 0a6cca1

Browse files
committed
Remove Error type
1 parent ccd9e7d commit 0a6cca1

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,8 @@
22

33
## Module Global
44

5-
### Types
6-
7-
data Error :: *
8-
9-
10-
### Type Class Instances
11-
12-
instance showError :: Show Error
13-
14-
155
### Values
166

17-
error :: String -> Error
18-
197
infinity :: Number
208

219
isFinite :: Number -> Boolean

src/Global.purs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ module Global
55
, isFinite
66
, readInt
77
, readFloat
8-
, Error()
9-
, error
108
) where
119

1210
foreign import nan "var nan = NaN;" :: Number
@@ -26,17 +24,3 @@ foreign import readInt
2624

2725
foreign import readFloat "var readFloat = parseFloat;" :: String -> Number
2826

29-
foreign import data Error :: *
30-
31-
instance showError :: Show Error where
32-
show = showErrorImpl
33-
34-
foreign import showErrorImpl
35-
"function showErrorImpl(err) {\
36-
\ return err.stack ? err.stack : err.toString();\
37-
\}" :: Error -> String
38-
39-
foreign import error
40-
"function error(msg) {\
41-
\ return new Error(msg);\
42-
\};" :: String -> Error

0 commit comments

Comments
 (0)