-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
95 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Lens | ||
( module Distribution.Compat.Lens, | ||
mapped, | ||
(|>), | ||
(<&>), | ||
) | ||
where | ||
|
||
import Data.Functor ((<&>)) | ||
import Data.Functor.Identity (Identity (..)) | ||
import Distribution.Compat.Lens | ||
|
||
mapped :: Functor f => ASetter (f a) (f b) a b | ||
mapped k = Identity . fmap (runIdentity . k) | ||
|
||
-- qwq | ||
(|>) :: a -> (a -> b) -> b | ||
(|>) = (&) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,50 @@ | ||
cabal-version: 2.4 | ||
name: uusi | ||
version: 0.0.1.0 | ||
synopsis: Remove all version constraints of dependencies in .cabal file | ||
cabal-version: 2.4 | ||
name: uusi | ||
version: 0.1.0.0 | ||
synopsis: | ||
Remove all version constraints of dependencies in .cabal file | ||
|
||
description: | ||
@uusi@ is a command-line program to remove all version constraints of dependencies in .cabal files. | ||
It is used in distribution packaging because @--allow-newer@ is not present when calling @Setup.hs@ | ||
instead of cabal-install. | ||
homepage: https://github.com/berberman/uusi | ||
bug-reports: https://github.com/berberman/uusi/issues | ||
license: MIT | ||
license-file: LICENSE | ||
author: berberman | ||
maintainer: berberman <1793913507@qq.com> | ||
copyright: 2020 berberman | ||
category: Distribution | ||
build-type: Simple | ||
extra-doc-files: README.md | ||
CHANGELOG.md | ||
tested-with: GHC == 8.10.2 | ||
@uusi@ is a command-line program to remove all version constraints of dependencies in .cabal files. | ||
It is used in distribution packaging because @--allow-newer@ is not present when calling @Setup.hs@ | ||
instead of cabal-install. | ||
|
||
homepage: https://github.com/berberman/uusi | ||
bug-reports: https://github.com/berberman/uusi/issues | ||
license: MIT | ||
license-file: LICENSE | ||
author: berberman | ||
maintainer: berberman <1793913507@qq.com> | ||
copyright: 2020 berberman | ||
category: Distribution | ||
build-type: Simple | ||
extra-doc-files: | ||
CHANGELOG.md | ||
README.md | ||
|
||
tested-with: GHC ==8.10.2 | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/berberman/uusi.git | ||
type: git | ||
location: https://github.com/berberman/uusi.git | ||
|
||
common common-options | ||
build-depends: base ^>= 4.14.0, | ||
Cabal ^>= 3.2.0, | ||
process ^>= 1.6.9, | ||
directory ^>= 1.3.6, | ||
microlens ^>= 0.4.11, | ||
optparse-applicative ^>= 0.15.1 || ^>= 0.16, | ||
colourista ^>= 0.1, | ||
text ^>= 1.2.3 | ||
|
||
ghc-options: -Wall | ||
-Wcompat | ||
-Widentities | ||
-Wincomplete-uni-patterns | ||
-Wincomplete-record-updates | ||
-Wredundant-constraints | ||
-fhide-source-paths | ||
-Wmissing-export-lists | ||
-Wpartial-fields | ||
-Wmissing-deriving-strategies | ||
|
||
default-language: Haskell2010 | ||
build-depends: | ||
, base ^>=4.14.0 | ||
, Cabal ^>=3.2.0 | ||
, text ^>=1.2.3 | ||
|
||
ghc-options: | ||
-Wall -Wcompat -Widentities -Wincomplete-uni-patterns | ||
-Wincomplete-record-updates -Wredundant-constraints | ||
-fhide-source-paths -Wmissing-export-lists -Wpartial-fields | ||
-Wmissing-deriving-strategies | ||
|
||
default-language: Haskell2010 | ||
|
||
executable uusi | ||
import: common-options | ||
hs-source-dirs: app | ||
main-is: Main.hs | ||
|
||
ghc-options: -threaded | ||
-rtsopts | ||
-with-rtsopts=-N | ||
import: common-options | ||
hs-source-dirs: app | ||
main-is: Main.hs | ||
other-modules: Lens | ||
ghc-options: -threaded -rtsopts -with-rtsopts=-N |