Первоначально задача возникла в https://t.me/haskellru и формулировалась примерно так: почему следующий код на Haskell
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
-module(otp_compat_transform). | |
-export([parse_transform/2]). | |
-export([add_otp21_nowarn/1]). % Export to avoid unused function warning on OTP20 | |
%% OTP_RELEASE is defined in OTP21, not before | |
-ifdef(OTP_RELEASE). | |
parse_transform(AST, _) -> | |
add_otp21_nowarn(AST). | |
-else. | |
parse_transform(AST, _) -> |
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
%% --------------------------------------------------------------------- | |
%% | |
%% Copyright (c) 2007-2015 Basho Technologies, Inc. All Rights Reserved. | |
%% | |
%% This file is provided to you under the Apache License, | |
%% Version 2.0 (the "License"); you may not use this file | |
%% except in compliance with the License. You may obtain | |
%% a copy of the License at | |
%% | |
%% http://www.apache.org/licenses/LICENSE-2.0 |