[Hackage] #479: Enforce build-type Simple

#479: Enforce build-type Simple ----------------------------+----------------------------------------------- Reporter: SamB | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- When a package claims to have "build-type Simple", it would be good to enforce that the Setup program actually does what it should. The simplest way to do this would be to enforce that everything after the shabang exactly match (modulo line-end conventions?) a standard script. (One each for Setup.hs and Setup.lhs.) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/479 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#479: Enforce build-type Simple ----------------------------+----------------------------------------------- Reporter: SamB | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: unknown Ghcversion: | Platform: ----------------------------+----------------------------------------------- Old description:
When a package claims to have "build-type Simple", it would be good to enforce that the Setup program actually does what it should. The simplest way to do this would be to enforce that everything after the shabang exactly match (modulo line-end conventions?) a standard script. (One each for Setup.hs and Setup.lhs.)
New description: When a package claims to have "build-type Simple", it would be good to enforce that the Setup program actually does what it should. The simplest way to do this would be to enforce that everything after the shabang line exactly match (modulo line-end conventions?) a standard script. (One each for Setup.hs and Setup.lhs.) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/479#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#479: Enforce build-type Simple ----------------------------+----------------------------------------------- Reporter: SamB | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * difficulty: unknown => easy (<4 hours) Comment: It's not just build-type Simple, the `Configure` and `Make` build types are also prescribed, though perhaps the latter should not be. For build-type Simple we'd require that the `Setup.hs` contain exactly: {{{ import Distribution.Simple main = defaultMain }}} Though to not annoy people perhaps we'd have to allow `Setup.lhs`. Though people might still get annoyed that they are not allowed `#!` lines or comments or whatever. Generally there is a great risk of annoying people. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/479#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#479: Enforce build-type Simple ----------------------------+----------------------------------------------- Reporter: SamB | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: | Platform: ----------------------------+----------------------------------------------- Comment (by SamB): Well, that's why I said "after the shabang line". -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/479#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#479: Enforce build-type Simple ----------------------------+----------------------------------------------- Reporter: SamB | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: | Platform: ----------------------------+----------------------------------------------- Comment (by duncan): Replying to [comment:3 SamB]:
Well, that's why I said "after the shabang line".
If I had my way we'd ban the shebang line too. :-) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/479#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#479: Enforce build-type Simple ----------------------------+----------------------------------------------- Reporter: SamB | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: | Platform: ----------------------------+----------------------------------------------- Comment (by guest): This has potential for annoying a lot of people. There's quite some variation in the {{{Setup.[l]hs}}} files. Here is a fictional example, a combination of several real {{{Setup.hs}}} scripts: {{{ module Main (main) where -- I usually compile this with "ghc --make -o setup Setup.hs" import Distribution.Simple (defaultMain) main :: IO () main = defaultMain }}} {{{Setup.lhs}}} files usually include a shebang. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/479#comment:5 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage