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

Commit 7b9b804

Browse files
committed
Update to ormolu 0.0.3.0
1 parent 17ccaf4 commit 7b9b804

File tree

8 files changed

+9
-11
lines changed

8 files changed

+9
-11
lines changed

src/Haskell/Ide/Engine/Plugin/Ormolu.hs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import Control.Monad.IO.Class ( liftIO , MonadIO(..) )
1212
import Data.Aeson ( Value ( Null ) )
1313
import Data.Text
1414
import Ormolu
15-
import Ormolu.Config (defaultConfig)
16-
import Ormolu.Exception (OrmoluException)
1715
import Haskell.Ide.Engine.PluginUtils
1816
#endif
1917

@@ -34,7 +32,7 @@ ormoluDescriptor plId = PluginDescriptor
3432
provider :: FormattingProvider
3533
provider _contents _uri _typ _opts =
3634
#if __GLASGOW_HASKELL__ >= 806
37-
case _typ of
35+
case _typ of
3836
FormatRange _ -> return $ IdeResultFail (IdeError PluginError (pack "Selection formatting for Ormolu is not currently supported.") Null)
3937
FormatText -> pluginGetFile _contents _uri $ \file -> do
4038
result <- liftIO $ try @OrmoluException (ormolu defaultConfig file (unpack _contents))
@@ -43,4 +41,4 @@ provider _contents _uri _typ _opts =
4341
Right new -> return $ IdeResultOk [TextEdit (fullRange _contents) new]
4442
#else
4543
return $ IdeResultOk [] -- NOP formatter
46-
#endif
44+
#endif

stack-8.6.1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extra-deps:
3838
- monoid-subclasses-0.4.6.1
3939
- multistate-0.8.0.1
4040
- parser-combinators-1.2.1
41-
- ormolu-0.0.2.0
41+
- ormolu-0.0.3.0
4242
- primes-0.2.1.0
4343
- resolv-0.1.1.2
4444
- rope-utf16-splay-0.3.1.0

stack-8.6.2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extra-deps:
3333
- monad-memo-0.4.1
3434
- multistate-0.8.0.1
3535
- parser-combinators-1.2.1
36-
- ormolu-0.0.2.0
36+
- ormolu-0.0.3.0
3737
- rope-utf16-splay-0.3.1.0
3838
- strict-list-0.1.5
3939
- syz-0.2.0.0

stack-8.6.3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extra-deps:
3131
- multistate-0.8.0.1
3232
- optparse-simple-0.1.0
3333
- parser-combinators-1.2.1
34-
- ormolu-0.0.2.0
34+
- ormolu-0.0.3.0
3535
- rope-utf16-splay-0.3.1.0
3636
- syz-0.2.0.0
3737
- temporary-1.2.1.1

stack-8.6.4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extra-deps:
2929
- monad-memo-0.4.1
3030
- multistate-0.8.0.1
3131
- parser-combinators-1.2.1
32-
- ormolu-0.0.2.0
32+
- ormolu-0.0.3.0
3333
- rope-utf16-splay-0.3.1.0
3434
- syz-0.2.0.0
3535
- temporary-1.2.1.1

stack-8.6.5.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extra-deps:
2727
- lsp-test-0.10.0.0
2828
- monad-dijkstra-0.1.1.2@rev:1
2929
- parser-combinators-1.2.1
30-
- ormolu-0.0.2.0
30+
- ormolu-0.0.3.0
3131
- syz-0.2.0.0
3232
- temporary-1.2.1.1
3333

stack-8.8.1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ packages:
66
extra-deps:
77
# - ./submodules/HaRe
88
- git: https://github.com/Avi-D-coder/ormolu.git
9-
commit: e2968da568b0402b67f36b34f992573519704044
9+
commit: dbd93d753cf5370620e235fea91cc029f2e988fb
1010

1111
- apply-refact-0.7.0.0
1212
- bytestring-trie-0.2.5.0

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extra-deps:
2828
- lsp-test-0.10.0.0
2929
- monad-dijkstra-0.1.1.2@rev:1
3030
- parser-combinators-1.2.1
31-
- ormolu-0.0.2.0
31+
- ormolu-0.0.3.0
3232
- syz-0.2.0.0
3333
- temporary-1.2.1.1
3434
- unix-compat-0.5.2

0 commit comments

Comments
 (0)