git.iko.soy/typeable/cabal2nix
on 3faffc2 help sign in
25 lines 669 B history raw
1{-# LANGUAGE PatternGuards, CPP #-}
2{- |
3 Module : Distribution.NixOS.Derivation.Cabal
4 License : BSD3
6 Maintainer : nix-dev@cs.uu.nl
7 Stability : provisional
8 Portability : PatternGuards
10 A represtation of Nix expressions based on Cabal builder defined in
11 @pkgs\/development\/libraries\/haskell\/cabal\/cabal.nix@.
12-}
14module Distribution.NixOS.Regex
15 ( module Text.Regex.Posix
16 , regsubmatch
17 )
18 where
20import Text.Regex.Posix
22regsubmatch :: String -> String -> [String]
23regsubmatch buf patt = let (_,_,_,x) = f in x
24 where f :: (String,String,String,[String])
25 f = match (makeRegexOpts compExtended execBlank patt) buf