git.iko.soy/typeable/cabal2nix
on 44207c2 help sign in
24 lines 626 B history raw
1{- |
2 Module : Distribution.NixOS.Derivation.Cabal
3 License : BSD3
5 Maintainer : simons@cryp.to
6 Stability : provisional
7 Portability : portable
9 A represtation of Nix expressions based on Cabal builder defined in
10 @pkgs\/development\/libraries\/haskell\/cabal\/cabal.nix@.
11-}
13module Distribution.NixOS.Regex
14 ( module Text.Regex.Posix
15 , regsubmatch
16 )
17 where
19import Text.Regex.Posix
21regsubmatch :: String -> String -> [String]
22regsubmatch buf patt = let (_,_,_,x) = f in x
23 where f :: (String,String,String,[String])
24 f = match (makeRegexOpts compExtended execBlank patt) buf