This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03e74af
commit bb9e0f4
Showing
6 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// NSArray+OHExtensions.h | ||
// ObjectiveHaskell | ||
// | ||
// Created by Justin Spahr-Summers on 08.08.12. | ||
// Released into the public domain. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "OHBridged.h" | ||
|
||
@interface NSArray (OHExtensions) <OHBridged> | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// NSArray+OHExtensions.m | ||
// ObjectiveHaskell | ||
// | ||
// Created by Justin Spahr-Summers on 08.08.12. | ||
// Released into the public domain. | ||
// | ||
|
||
#import "NSArray+OHExtensions.h" | ||
#import "NSArray_stub.h" | ||
|
||
@implementation NSArray (OHExtensions) | ||
|
||
+ (instancetype)objectWithHaskellPointer:(OHHaskellPtr)haskellPointer { | ||
return OHNSArrayFromHaskellPtr(haskellPointer); | ||
} | ||
|
||
- (OHHaskellPtr)haskellPointer { | ||
return OHHaskellPtrFromNSArray(self); | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters