git-annex/Remote
Joey Hess 2dd38b6403
switch to Haskell2010
When I put in Haskell98 this spring, I was under the mistaken
apprehension that ghc defaulted to that. But it actually its default
is a third mode, which is closer to Haskell2010 but with some differences.
The manual says "By default, GHC mainly aims to behave (mostly) like a
Haskell 2010 compiler"

Fixed two cases where the Haskell98 do indentation flexability let
wrongly indented code build. That is one of the places where
ghc does not behave like Haskell2010 by default.

The other place that I think I was concerned about, is GHC manual
section 19.1.1.3. Expressions and patterns. But that only seems to
affect code using bottoms, so would only affect pure functions throwing
an error, which I don't think git-annex does in many places as it's
pretty horrid style. And it would only affect rare cases like shown in
that section. If it did happen, it would mean that the error was not
thrown before specifying Haskell98, and then was. Haskell2010 behaves
the same as Haskell98.

This commit was sponsored by Denis Dzyubenko on Patreon.
2020-10-19 11:26:16 -04:00
..
Directory make storeKey throw exceptions 2020-05-13 14:03:00 -04:00
External fix some warnings 2020-08-15 14:33:18 -04:00
Helper external backends wip 2020-07-29 15:23:18 -04:00
List auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
Rsync fix windows build 2020-01-01 14:27:03 -04:00
WebDAV more RawFilePath 2019-12-18 17:10:28 -04:00
Adb.hs no importKey for android yet 2020-07-03 14:02:50 -04:00
BitTorrent.hs Parse youtube-dl progress output 2020-09-29 17:53:48 -04:00
Bup.hs fix reversion 2020-06-05 19:06:09 -04:00
Ddar.hs convert to withCreateProcess for async exception safety 2020-06-04 15:45:52 -04:00
Directory.hs fix some file modes in calls to withTmpFileIn to honor umask 2020-09-02 14:36:08 -04:00
External.hs fix hang if external program is not available 2020-08-19 12:20:07 -04:00
GCrypt.hs cache remote.log 2020-09-22 13:52:26 -04:00
Git.hs avoid failure to lock content of removed file causing drop etc to fail 2020-07-25 11:59:33 -04:00
GitLFS.hs switch to Haskell2010 2020-10-19 11:26:16 -04:00
Glacier.hs close stdin handles before waiting on commands 2020-06-05 17:27:49 -04:00
Hook.hs make removeKey throw exceptions 2020-05-14 14:11:05 -04:00
HttpAlso.hs httpalso: Support being used with special remotes that do not have encryption= in their config. 2020-09-29 13:56:27 -04:00
List.hs cache remote.log 2020-09-22 13:52:26 -04:00
P2P.hs make retrieveKeyFile and retrieveKeyFileCheap throw exceptions 2020-05-13 17:07:07 -04:00
Rsync.hs fix implicit embedcreds regression 2020-06-16 18:00:19 -04:00
S3.hs aws-0.22 improved its support for setting etags, which improves support for versioned S3 buckets. 2020-09-14 18:37:49 -04:00
Tahoe.hs lockContent for tahoe 2020-06-26 14:23:21 -04:00
Web.hs Parse youtube-dl progress output 2020-09-29 17:53:48 -04:00
WebDAV.hs fix embedcreds=yes reversion 2020-05-21 14:35:30 -04:00