foo
This commit is contained in:
		
					parent
					
						
							
								6b30b66160
							
						
					
				
			
			
				commit
				
					
						0bf516d018
					
				
			
		
					 1 changed files with 8 additions and 4 deletions
				
			
		|  | @ -1,7 +1,6 @@ | ||||||
| {- Allows linking haskell programs too big for all the files to fit in a | {- Allows linking haskell programs too big for all the files to fit in a | ||||||
|  - command line. |  - command line. | ||||||
|  - |  - | ||||||
|  - |  | ||||||
|  - Copyright 2013 Joey Hess <joey@kitenet.net> |  - Copyright 2013 Joey Hess <joey@kitenet.net> | ||||||
|  - |  - | ||||||
|  - Licensed under the GNU GPL version 3 or higher. |  - Licensed under the GNU GPL version 3 or higher. | ||||||
|  | @ -12,6 +11,7 @@ module Main where | ||||||
| import Data.Maybe | import Data.Maybe | ||||||
| import Data.Either | import Data.Either | ||||||
| import Data.List | import Data.List | ||||||
|  | import Data.List.Utils | ||||||
| import Text.Parsec | import Text.Parsec | ||||||
| import Text.Parsec.String | import Text.Parsec.String | ||||||
| import Control.Applicative ((<$>)) | import Control.Applicative ((<$>)) | ||||||
|  | @ -27,7 +27,7 @@ data CmdParams = CmdParams { cmd :: String, opts :: String } | ||||||
| {- Find where ghc calls gcc to link the executable. -} | {- Find where ghc calls gcc to link the executable. -} | ||||||
| parseGhcLink :: Parser CmdParams | parseGhcLink :: Parser CmdParams | ||||||
| parseGhcLink = do | parseGhcLink = do | ||||||
| 	many prelinklines | 	many prelinkline | ||||||
| 	linkheaderline | 	linkheaderline | ||||||
| 	char '"' | 	char '"' | ||||||
| 	gcccmd <- many1 (noneOf "\"") | 	gcccmd <- many1 (noneOf "\"") | ||||||
|  | @ -38,14 +38,18 @@ parseGhcLink = do | ||||||
| 	linkheaderline = do | 	linkheaderline = do | ||||||
| 		string "*** Linker" | 		string "*** Linker" | ||||||
| 		restOfLine | 		restOfLine | ||||||
| 	prelinklines = do | 	prelinkline = do | ||||||
| 		notFollowedBy linkheaderline | 		notFollowedBy linkheaderline | ||||||
| 		restOfLine | 		restOfLine | ||||||
| 	manglepaths = replace "\\" "/" | 	manglepaths = replace "\\" "/" | ||||||
| 
 | 
 | ||||||
| {- Find where gcc calls collect1. -} | {- Find where gcc calls collect1. -} | ||||||
| parseGccLink :: Parser CmdParams | parseGccLink :: Parser CmdParams | ||||||
| parseGccLink = error "TODO" | parseGccLink = do | ||||||
|  | 	many prelinkline | ||||||
|  | 	error "TODO" | ||||||
|  |   where | ||||||
|  |  	prelinkline = error "TODO" | ||||||
| 	 | 	 | ||||||
| {- Find where collect1 calls ld. -} | {- Find where collect1 calls ld. -} | ||||||
| parseCollect1 :: Parser CmdParams | parseCollect1 :: Parser CmdParams | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Joey Hess
				Joey Hess