Skip to content

Commit 28f1435

Browse files
committed
Format imports
1 parent b06c9d5 commit 28f1435

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.tidyrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"importSort": "ide",
3+
"importWrap": "source",
24
"indent": 2,
35
"operatorsFile": null,
46
"ribbon": 1,

src/JSON.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ import Prelude
2727

2828
import Data.Either (Either(..))
2929
import Data.Function.Uncurried (runFn2, runFn3, runFn7)
30-
import Data.Maybe (Maybe(..))
3130
import Data.Int as Int
32-
import JSON.Internal (JArray, JObject, JSON) as Exports
31+
import Data.Maybe (Maybe(..))
3332
import JSON.Internal (JArray, JObject, JSON)
33+
import JSON.Internal (JArray, JObject, JSON) as Exports
3434
import JSON.Internal as Internal
3535

3636
-- | Attempts to parse a string as a JSON value. If parsing fails, an error message detailing the
@@ -122,7 +122,7 @@ toNumber :: JSON -> Maybe Number
122122
toNumber json = runFn7 Internal._case fail fail Just fail fail fail json
123123

124124
-- | Converts a `JSON` `Number` into an `Int`.
125-
-- |
125+
-- |
126126
-- | This is provided for convenience only.
127127
toInt :: JSON -> Maybe Int
128128
toInt = toNumber >=> Int.fromNumber

src/JSON/Array.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import Data.Array as Array
1111
import Data.Foldable (class Foldable)
1212
import Data.Maybe (Maybe)
1313
import Data.Unfoldable (class Unfoldable)
14-
import JSON.Internal (JArray, JSON, toArray, fromArray)
15-
import JSON.Internal (JArray, toArray, fromArray) as Exports
14+
import JSON.Internal (JArray, JSON, fromArray, toArray)
15+
import JSON.Internal (JArray, fromArray, toArray) as Exports
1616

1717
-- | Creates a `JArray` from a `Foldable` source of `JSON`.
1818
fromFoldable :: forall f. Foldable f => f JSON -> JArray

src/JSON/Object.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import Data.Function.Uncurried (runFn2, runFn3, runFn4)
2121
import Data.Maybe (Maybe(..))
2222
import Data.Tuple (Tuple(..), fst, snd)
2323
import Data.Unfoldable (class Unfoldable)
24-
import JSON.Internal (JSON, JObject, _delete, _entries, _fromEntries, _insert, _lookup)
2524
import JSON.Internal (JObject) as Exports
25+
import JSON.Internal (JObject, JSON, _delete, _entries, _fromEntries, _insert, _lookup)
2626

2727
-- | Creates an `JObject` from an array of key/value pairs.
2828
fromEntries :: Array (Tuple String JSON) -> JObject

0 commit comments

Comments
 (0)