Permalink
Browse files

Move c2hs modules under src/

and rename them to use hierarchical module names

darcs-hash:20080620161108-adfee-6ae78a985fc1d5f5ec79049826293865b63e134a
  • Loading branch information...
dcoutts committed Jun 20, 2008
1 parent 3a72adb commit e7e8dbf77330418973760663c08d72774adaba44
Showing with 40 additions and 49 deletions.
  1. +40 −49 c2hs.cabal
  2. 0 {c2hs → }/examples/libghttpHS/Ghttp.chs
  3. 0 {c2hs → }/examples/libghttpHS/Makefile
  4. 0 {c2hs → }/examples/libghttpHS/ghttpHS.c
  5. 0 {c2hs → }/examples/libghttpHS/ghttpHS.h
  6. 0 {c2hs/c → src/C2HS}/C.hs
  7. 0 c2hs/c/CAST.hs → src/C2HS/C/AST.hs
  8. 0 c2hs/c/CAttrs.hs → src/C2HS/C/Attrs.hs
  9. 0 c2hs/c/CBuiltin.hs → src/C2HS/C/Builtin.hs
  10. 0 c2hs/gen/CInfo.hs → src/C2HS/C/Info.hs
  11. 0 c2hs/c/CLexer.x → src/C2HS/C/Lexer.x
  12. 0 c2hs/c/CNames.hs → src/C2HS/C/Names.hs
  13. 0 c2hs/c/CParser.y → src/C2HS/C/Parser.y
  14. 0 c2hs/c/CParserMonad.hs → src/C2HS/C/ParserMonad.hs
  15. 0 c2hs/c/CPretty.hs → src/C2HS/C/Pretty.hs
  16. 0 c2hs/c/CTokens.hs → src/C2HS/C/Tokens.hs
  17. 0 c2hs/c/CTrav.hs → src/C2HS/C/Trav.hs
  18. 0 {c2hs/chs → src/C2HS}/CHS.hs
  19. 0 c2hs/chs/CHSLexer.hs → src/C2HS/CHS/Lexer.hs
  20. 0 c2hs/toplevel/C2HSConfig.hs → src/C2HS/Config.hs
  21. 0 c2hs/gen/GenBind.hs → src/C2HS/Gen/Bind.hs
  22. 0 c2hs/gen/GenHeader.hs → src/C2HS/Gen/Header.hs
  23. 0 c2hs/gen/GBMonad.hs → src/C2HS/Gen/Monad.hs
  24. 0 c2hs/state/C2HSState.hs → src/C2HS/State.hs
  25. 0 {c2hs/state → src/C2HS}/Switches.hs
  26. 0 {c2hs/toplevel → src/C2HS}/Version.hs
  27. 0 c2hs/toplevel/c2hs_config.c → src/C2HS/config.c
  28. 0 c2hs/toplevel/c2hs_config.h → src/C2HS/config.h
  29. 0 {c2hs/toplevel → src}/Main.hs
  30. 0 src/{Control → System}/CIO.hs
  31. 0 {c2hs/c/tests → tests/cparser}/CCWrapper.hs
  32. 0 {c2hs/c/tests → tests/cparser}/Makefile
  33. 0 {c2hs/c/tests → tests/cparser}/ParseUnit.hs
  34. 0 {c2hs/c/tests → tests/cparser}/cc-wrapper.sh
  35. 0 {c2hs/c/tests → tests/cparser}/declr.i
  36. 0 {c2hs/c/tests → tests/cparser}/simple.i
  37. 0 {c2hs/c/tests → tests/cparser}/struct.i
  38. 0 {c2hs/c/tests → tests/cparser}/typedef.i
  39. 0 {c2hs/tests → tests/system}/Calls.chs
  40. 0 {c2hs/tests → tests/system}/Cpp.chs
  41. 0 {c2hs/tests → tests/system}/Enums.chs
  42. 0 {c2hs/tests → tests/system}/Makefile
  43. 0 {c2hs/tests → tests/system}/Marsh.chs
  44. 0 {c2hs/tests → tests/system}/Pointer.chs
  45. 0 {c2hs/tests → tests/system}/Simple.chs
  46. 0 {c2hs/tests → tests/system}/Structs.chs
  47. 0 {c2hs/tests → tests/system}/calls.h
  48. 0 {c2hs/tests → tests/system}/cpp.h
  49. 0 {c2hs/tests → tests/system}/enums.c
  50. 0 {c2hs/tests → tests/system}/enums.h
  51. 0 {c2hs/tests → tests/system}/marsh.h
  52. 0 {c2hs/tests → tests/system}/pointer.c
  53. 0 {c2hs/tests → tests/system}/pointer.h
  54. 0 {c2hs/tests → tests/system}/simple.c
  55. 0 {c2hs/tests → tests/system}/simple.h
  56. 0 {c2hs/tests → tests/system}/structs.c
  57. 0 {c2hs/tests → tests/system}/structs.h
View
@@ -19,7 +19,7 @@ Category: Development
--TODO: Cabal should allow 'Data-Files' in the executable stanza
Data-Files: C2HS.hs
Extra-Source-Files:
- c2hs/toplevel/c2hs_config.h
+ src/C2HS/config.h
AUTHORS INSTALL README README.CTKlight
c2hs/tests/Calls.chs c2hs/tests/enums.h c2hs/tests/simple.c
@@ -36,59 +36,50 @@ Flag splitBase
Description: Choose the new smaller, split-up base package.
Executable c2hs
- Main-Is: Main.hs
Build-Depends: base, filepath
if flag(splitBase)
Build-Depends: base >= 3, process, directory, array, containers, pretty
else
Build-Depends: base < 3
- Build-Tools: happy, alex
+ build-tools: happy, alex
+ hs-source-dirs: src
+ main-is: Main.hs
+ other-modules:
+ Data.Errors
+ Data.DLists
+ Data.Position
+ Data.UNames
+ Data.Attributes
+ Data.Idents
+ Data.NameSpaces
+ Control.StateBase
+ Control.State
+ Control.StateTrans
+ System.CIO
+ Text.Lexers
- Hs-Source-Dirs: base/admin
- base/errors
- base/general
- base/state
- base/syms
- base/syntax
- c2hs/c
- c2hs/chs
- c2hs/gen
- c2hs/state
- c2hs/toplevel
- Other-Modules: Errors
- DLists
- UNames
- CIO
- StateBase
- State
- StateTrans
- Position
- Attributes
- Idents
- NameSpaces
- Lexers
- CAST
- CAttrs
- CBuiltin
- C
- CTokens
- CParserMonad
- CLexer
- CNames
- CParser
- CPretty
- CTrav
- CHS
- CHSLexer
- CInfo
- GBMonad
- GenBind
- GenHeader
- C2HSState
- Switches
- C2HSConfig
- Version
- Extensions: ForeignFunctionInterface
- C-Sources: c2hs/toplevel/c2hs_config.c
+ C2HS.C
+ C2HS.C.AST
+ C2HS.C.Builtin
+ C2HS.C.Lexer
+ C2HS.C.Parser
+ C2HS.C.Pretty
+ C2HS.C.Tokens
+ C2HS.C.Attrs
+ C2HS.C.Names
+ C2HS.C.Trav
+ C2HS.C.ParserMonad
+ C2HS.C.Info
+ C2HS.CHS
+ C2HS.CHS.Lexer
+ C2HS.State
+ C2HS.Switches
+ C2HS.Config
+ C2HS.Version
+ C2HS.Gen.Monad
+ C2HS.Gen.Bind
+ C2HS.Gen.Header
+ extensions: ForeignFunctionInterface
+ c-sources: src/C2HS/config.c
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e7e8dbf

Please sign in to comment.