Changeset 12102 for third-party
- Timestamp:
- 08/11/06 07:09:05 (2 years ago)
- Location:
- third-party
- Files:
-
- 3 modified
- 1 copied
-
. (copied) (copied from third-party)
-
HsJudy/HsJudy.cabal (modified) (1 diff)
-
HsJudy/Judy/Stringable.hs (modified) (2 diffs)
-
HsJudy/tests/CheckDup.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
third-party/HsJudy/HsJudy.cabal
r12024 r12102 6 6 author: Caio Marcelo de Oliveira Filho <cmarcelo@gmail.com>, John Meacham 7 7 maintainer: Caio Marcelo de Oliveira Filho <cmarcelo@gmail.com> 8 build-depends: base 8 build-depends: base -any, pugs-fps -any 9 9 exposed-modules: Judy.BitSet Judy.Freeze Judy.Hash Judy.IntMap Judy.StrMap Judy.CollectionsM Judy.HashIO Judy.Refeable Judy.Stringable 10 10 other-modules: Judy.Private Judy.MiniGC 11 11 extensions: ForeignFunctionInterface 12 ghc-options: -fglasgow-exts -O2 13 include-dirs: . 12 ghc-options: -fglasgow-exts -O2 -static 13 include-dirs: . ../judy/Judy-1.0.3/src 14 14 -- FIXME: make Cabal work nicely with _hsc files, now I think it works, but doesnt clean _hsc files 15 15 c-sources: Judy/Private_hsc.c 16 16 extra-libraries: Judy 17 extra-lib-dirs: . -
third-party/HsJudy/Judy/Stringable.hs
r12024 r12102 7 7 import Foreign.C.String 8 8 9 -- #if __GLASGOW_HASKELL__ >= 605 9 10 import qualified Data.ByteString as B 11 -- #endif 10 12 11 13 -- TODO: See if its possible to use Storable, ie. to let any Storable type be "stringable". … … 29 31 fromString = id 30 32 33 -- #if __GLASGOW_HASKELL__ >= 605 31 34 instance Stringable B.ByteString where 32 toString = undefined 33 fromString = undefined 34 35 useAsCS = B.useAsCString 36 useAsCSLen = B.useAsCStringLen 37 38 copyCS = B.copyCString 39 copyCSLen = B.copyCStringLen 35 toString = undefined 36 fromString = undefined 37 38 useAsCS = B.useAsCString 39 useAsCSLen = B.useAsCStringLen 40 41 copyCS = B.copyCString 42 copyCSLen = B.copyCStringLen 43 -- #endif 40 44 41 45 -
third-party/HsJudy/tests/CheckDup.hs
r12024 r12102 1 {-# OPTIONS -fallow-overlapping-instances #-} 2 1 3 import qualified Judy.Hash as H 2 4 import qualified Judy.StrMap as S
