<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr"><div>Hello,</div><div><br></div><div>Another update to my vote, to do with ViewPatterns.</div><div>-Iavor</div><div><br></div><br>Module System<br>=============<br><br>ImportQualifiedPost: yes<br>-- ^ This is relatively new, but it seems quite simple, and it does make<br>-- things read nicer.<br><br>-- | These are only needed under very special circumstances,<br>-- so it's good to be explicit:<br>PackageImports: no<br>NoImplicitPrelude: no<br><br><br>Notation<br>========<br><br>BlockArguments: yes<br>-- ^ I use this all the time.<br><br>MultiWayIf: yes<br>-- ^ This is nice on occasion, and it does not seem to conflict with<br>-- anything.  Certainly nicer than the alternative `case () of _ | ... `:<br><br>LambdaCase: no<br>-- ^ CHANGED from maybe.  Simon PJ makes a good point that alternatives are under consideration, so it should not be on yet.<br><br>-- | The various literal notations seem useful when you need them<br>-- and don't conflict with anything.<br>BinaryLiterals: yes<br>HexFloatLiterals: yes<br>NumericUnderscores: yes<br>NumDecimals: maybe<br>-- ^ | Not too sure about this last one, I've never used, but it<br>-- I could see it being useful on occasion.<br><br>OverloadedStrings: maybe<br>-- ^ | CHANGED from yes.  I use this a lot, and would be OK with it being on all the time, but if others would rather not have it on, it's not a big deal to turn on when needed.<br><br>OverloadedLists: maybe<br>-- | ^ I've never used this, but I could see it potentially being useful.<br><br>OverloadedLabels: no<br>-- | ^ This one seems for experimenting with various new features<br>-- (e.g., record selectors), so it seems reasonable to turn it on only<br>-- when it is needed.<br><br>EmptyCase: maybe<br>-- ^ Seems like a nicer notation for forcing `Void` values.<br>-- I agree that it is odd that it is strict.  OTOH, it'd be quite useless<br>-- if it was lazy, so I could go either way.<br><br>-- | I haven't really used any of those, so I could go either way:<br>PostfixOperators: yes<div>-- CHANGED from maybe.  Convinced by Simon M.</div><div><br>LexicalNegation: maybe<br>UnicodeSyntax: yes</div><div>-- CHANGED from maybe.  Convinced by Joachim.<br><br>NegativeLiterals: no<br>-- ^ It seems that `LexicalNegation` might be a nicer way to do this?<br><br>TupleSections: maybe<br>-- ^ I don't use this often, but I'd use it more often if it was on by default.<br><br>ImplicitParams: no<br>-- ^ I find these quite useful on occasion, but it does seem reasonable<br>-- to be explicit when you need them.<br><br>ParallelListComp: yes<br>-- ^ I find these to be a very nice generalization to list comprehensions<br>-- that makes some code way more readable than using `zip/zipWith`, just<br>-- like comprehensions are often nicer than `map` or `concatMap`<br><br>RecursiveDo: yes<br>-- ^ Seems useful when you need it, and it doesn't clash with anything,<br>-- so I see no reason to not have it on all the time.<br><br>TransformListComp: no<br>-- ^ In my mind these are just a bit too much syntactic sugar.<br><br>Arrows: no<br>-- ^ It's not used a lot, not terribly useful and overall feels "clunky".<br><br>ApplicativeDo: maybe<br>-- ^ I think the core of this extension is really useful,<br>-- but I would prefer a simpler syntactic version of it,<br>-- without the various transformations assuming that some laws hold.<br><br>QualifiedDo: no<br>-- ^ This is neat, but it is too new to be on by default.<br><br>MonadComprehensions: maybe<br>-- ^ I never really use these.<br>-- On occasion I've wanted `ApplicativeComprehensions` though.<br><br>NondecreasingIndentation: no<br>-- ^ This always felt like a hack to me.<br><br>RebindableSyntax: no<br>-- ^ This is a very special case thing<br><br>ExplicitNamespaces: maybe<br>-- ^ We need this if we also want pattern synonyms.<br><br><br>Data Types<br>==========<br><br>DatatypeContexts: no<br>-- ^ These are not really used much, and usually don't do what people expect.<br><br>ExistentialQuantification: yes<br>-- ^ This is quite useful, and has been around for a long time.<br><br>EmptyDataDecls: yes<br>-- ^ Seems more consistent to allow this<br><br>RoleAnnotations: no<br>-- ^ This only makes sense with `GeneralisedNewtypeDeriving` which<br>-- I don't think should be on by default.<br><br>StrictData: no<br>-- ^ This is very unHaskell :)<br><br>GADTSyntax: maybe<br>-- ^ I personally don't use this, but I know some folks like to write<br>-- their `data` declarations in this notation.<br><br>GADTs: no<br>-- ^ These can be useful, but it seems reasonable to enable them when<br>-- you need them, as they bring in quite a lot of machinery with them.<br><br><br>Patterns and Guards<br>===================<br>BangPatterns: yes<br>-- ^ Seem to be useful, and quite popular.<br><br>ViewPatterns: no</div><div>-- ^ CHANGES form yes. Useful on occasion, but seems that there might be better designs aroudn</div><div>-- (e.g. guarded patterns)</div><div><br></div><div>PatternSynonyms: maybe<br>-- ^ These are quite useful, but I am not sure how stable is their design.<br><br>NoPatternGuards: no<br>-- ^ Conflicts with Haskell2010<br><br>NPlusKPatterns: no<br>-- ^ Conflicts with Haskell2010<br><br><br>Records<br>=======<br><br>-- | I find these two very useful when working with records,<br>-- especially large ones, and declaring the extension really adds no<br>-- information:<br>NamedFieldPuns: yes<br>RecordWildCards: yes<br><br>-- | These seem to be largely about experimenting with new record<br>system, and I don't think any of them are quite ready to be on by default:<br>DisambiguateRecordFields: no<br>DuplicateRecordFields: no<br>NoTraditionalRecordSyntax: no<br><br>Deriving<br>=======<br><br>-- | Declaring these as extensions explicitly adds very little information.<br>DeriveGeneric: yes<br>DeriveLift: yes<br>DeriveDataTypeable: yes<br><br>EmptyDataDeriving: yes<br>-- ^ Useful for consistency<br><br>StandaloneDeriving: yes<br>-- ^ I find this quite useful on occasion, and does not conflict with anything<br><br><br>-- | I think the rest of the deriving extensions are not particularly orthogonal<br>at the moment, so I don't think we should have them on by default, at least<br>not yet, even though I find some of them quite useful.<br><br>DeriveFunctor: yes<br>DeriveFoldable: yes<br>DeriveTraversable: yes</div><div>-- ^ The 3 above CHANGED from no.   I was concerned about conflicting deriving strategies, but I guess these probably always make sense.</div><div><br>DerivingStrategies: no<br>DerivingVia: no<br>GeneralisedNewtypeDeriving: no<br>DeriveAnyClass: no<br><br><br>Class System<br>============<br><br>MultiParamTypeClasses: yes<br>-- ^ Seems like a natural extension and does not really conflict with anything<br><br>NullaryTypeClasses: yes<br>-- ^ Seems like a natural extension and does not really conflict with anything<br><br>ConstraintKinds: yes<br>-- ^ CHANGED from maybe. These seem like a very nice fit with the rest of the kind system,<br>-- so I think we can enable them.  The reason I wrote `maybe` is due to<br>-- the confusion between constraints and tuples.<br><br>-- | These 3 seem to be quite common.  There are some reasons to be careful<br>-- when writing `FlexibleInstances`, but it seems that having the extension<br>-- does not really help much with those.<br>TypeSynonymInstances: yes<br>FlexibleInstances: yes<br>FlexibleContexts: yes<br><br>-- | I haven't really used these much, so I don't have a strong opinion:<br>ConstrainedClassMethods: maybe<br>DefaultSignatures: maybe<br>InstanceSigs: maybe<br>ExtendedDefaultRules: no</div><div>CHANGED from maybe.  This is mostly for GHCi.<br><br>FunctionalDependencies: no<br>-- ^ While I quite like the general idea here, I don't think we should<br>-- have these on by default.<br><br>QuantifiedConstraints: no<br>-- ^ These seem neat, but are quite new to be on by default.<br><br>UndecidableInstances: no<br>-- ^ These are a very special case, and ideally should be specified<br>-- on a per instance basis.<br><br>IncoherentInstances: no<br>-- ^ Why do we even have this? :)<br><br>UndecidableSuperClasses: no<br>-- ^ These are a very special case.<br><br>OverlappingInstances: no<br>-- ^ This has been subsumed by per-instance pragmas<br><br>Types<br>=====<br><br>RankNTypes: yes<br>-- ^ These are useful and have been around for a long time.  The design<br>-- seems to work well.<br><br>-- | These two seem useful, but I am not sure if they should be on by default.<br>-- If so, though, it makes sense to have both of them on.<br>StandaloneKindSignatures: maybe<br>KindSignatures: maybe<br><br>LiberalTypeSynonyms: maybe<br>-- ^ These seem useful, but can lead to some rather confusing situations<br>-- where types that look "normal" don't behave as you'd expect<br>-- (e..g, writing `[T]` fails because `T` happens to have `forall` in it)<br><br>-- | These two go together and seem quite useful, especially when writing<br>-- local type signatures.<br>ScopedTypeVariables: maybe<br>ExplicitForAll: maybe</div><div>CHANGED from yes to maybe.  Personally, I wouldn't mind if this was on all the time, but Richard seems to prefer that it is not, so I could go either way.<br><br>AllowAmbiguousTypes: no<br>-- ^ Often these are unintentional, and are due to a mistake in the program.<br><br>ImpredicativeTypes: no<br>-- ^ These are being currently redesigned, so not ready.<br><br>MonoLocalBinds: maybe<br>-- ^ I don't know if this one is on by default or not already...<br><br>NoMonomorphismRestriction: yes<br>-- ^ The monomrphism restriction seems to cause a lot of confusion, and I<br>-- am not sure that it's helped that much with efficiency<br><br>-- | Doesn't really seem to be commonly used.<br>PartialTypeSignatures: no<br>NamedWildCards: no<br><br>LinearTypes: no<br>-- ^ Too new to be standardized<br><br>TypeApplications: no<br>-- ^ This one is quite useful, bit it seems that its design and how many users<br>-- understand it don't match, so maybe there is more work to be done.<br><br>-- | These are all related to type-level programming, and while I don't think<br>-- they should be on by default, it might be useful to have a single flag that<br>-- turns a bunch of them on.<br>PolyKinds: no<br>TypeOperators: no<br>StarIsType: maybe<br>TypeFamilies: no<br>TypeFamilyDependencies: no<br>DataKinds: no</div><div><br></div><div><br>FFI<br>===<br>I don't think the FFI should be on by default, as it is used relatively<br>infrequently, although it might be nice if `ForeignFunctionInterface`<br>implied `CApiFFI`<br><br>ForeignFunctionInterface: yes<br>CApiFFI: yes</div><div>CHANGED from no.  FFI is part of Haskell 2010, and so should be on by default.  If the FFI is on, then it makes a lot of sense to have CApiFFI on too.</div><div><br></div><div><br>GHCForeignImportPrim: no<br>InterruptibleFFI: no<br>UnliftedFFITypes: no<br>StaticPointers: no<br><br><br>Low Level<br>=========<br><br>These are for low-level hacking, so I don't think they should be<br>on by default.  However, I wouldn't mind having a flag that enabled<br>all of them with a single extension (e.g., `UnliftedTypes`)<br><br>UnboxedSums: no<br>UnboxedTuples: no<br>MagicHash: no<br>UnliftedNewtypes: yes</div><div>CHANGED from no.  This one just makes sense, and while it is not terribly useful without the other extensions (as there is no way to actually write an unboxed type in the first place), it would be one fewer extension to write if one want to use low level stuff<br><br>Macros<br>======<br><br>CPP: no<br>This is quite specialized, so it seems reasonable to be explicit about it.<br><br><br>I don't think these should be on by default, but I wouldn't mind it<br>if `TemplateHaskell` implied `QuasiQuotes`, so that when I use TH<br>I just need to turn on a single extension.:<br><br>TemplateHaskell: no<br>TemplateHaskellQuotes: no<br>QuasiQuotes: no<br><br><br>Other<br>=====<br><br>-- | These are part of Safe Haskell and are there to be written explicitly<br>Unsafe: no<br>Safe: no<br>Trustworthy: no<br><br><br>Strict: no<br>-- ^ This is not Haskell! :-)<br><br>Obsolete/Deprecated<br>===================<br>CUSKs: no<br>TypeInType: no<br>MonadFailDesugaring: maybe<br></div></div>
</div></div>