Moving the portability handling into a small C library cleans up things a lot, avoiding the pain of unpacking structs from inside haskell code.
		
			
				
	
	
		
			6 lines
		
	
	
	
		
			80 B
			
		
	
	
	
		
			Haskell
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			80 B
			
		
	
	
	
		
			Haskell
		
	
	
	
	
	
{- configure program -}
 | 
						|
 | 
						|
import Build.Configure
 | 
						|
 | 
						|
main :: IO ()
 | 
						|
main = run tests
 |